793755532f
* SWDEV-561708 Initial shared queue pool apis * Validate params; some fixes in callback function (but still needs to be checked) * Dtor cleanup * minor * Enable profiling; remove callback since aql_queue takes care of it * setPriority and setCuMask APIs updated for counted queues * Increasing step and minor version for rocprofiler * Tests for CountedQueueManager * tests * Code refactored to make pool manager part of GpuAgent only (incomplete); unique handles issue pending * Refactored code to support CQM inside GpuAgent and unique handles; multithreaded test added * Changed to ASSERT_SUCCESS macros for all tests * RIng buffer overflow test added * tests fixed; cleanup added at hsa_shutdown * priority conversion table changes * Compiler warnings fixed * Rewrite 1 test; add desc and improve SetUp() code * Improvement * Unififed getinfo for both counted and non-counted queues * Address PR feedback * Addressing feedback: memleak, data type mismatch, documentation * improve comment * format * Missing HSA_API macros for roctracer * Revert "Addressing feedback: memleak, data type mismatch, documentation" This reverts commit 5e498a55fb3640e00d06cec63dcec79293fb23de. * Improving acquire api doc * release api doc improved * error codes for release api doc
71 linhas
3.3 KiB
C
71 linhas
3.3 KiB
C
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// The University of Illinois/NCSA
|
|
// Open Source License (NCSA)
|
|
//
|
|
// Copyright (c) 2014-2025, Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
// Developed by:
|
|
//
|
|
// AMD Research and AMD HSA Software Development
|
|
//
|
|
// Advanced Micro Devices, Inc.
|
|
//
|
|
// www.amd.com
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
// of this software and associated documentation files (the "Software"), to
|
|
// deal with the Software without restriction, including without limitation
|
|
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
// and/or sell copies of the Software, and to permit persons to whom the
|
|
// Software is furnished to do so, subject to the following conditions:
|
|
//
|
|
// - Redistributions of source code must retain the above copyright notice,
|
|
// this list of conditions and the following disclaimers.
|
|
// - Redistributions in binary form must reproduce the above copyright
|
|
// notice, this list of conditions and the following disclaimers in
|
|
// the documentation and/or other materials provided with the distribution.
|
|
// - Neither the names of Advanced Micro Devices, Inc,
|
|
// nor the names of its contributors may be used to endorse or promote
|
|
// products derived from this Software without specific prior written
|
|
// permission.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
// THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
// DEALINGS WITH THE SOFTWARE.
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef HSA_RUNTIME_INC_HSA_API_TRACE_VERSION_H
|
|
#define HSA_RUNTIME_INC_HSA_API_TRACE_VERSION_H
|
|
|
|
// CODE IN THIS FILE **MUST** BE C-COMPATIBLE
|
|
|
|
// Major Ids of the Api tables exported by Hsa Core Runtime
|
|
#define HSA_API_TABLE_MAJOR_VERSION 0x03
|
|
#define HSA_CORE_API_TABLE_MAJOR_VERSION 0x02
|
|
#define HSA_AMD_EXT_API_TABLE_MAJOR_VERSION 0x02
|
|
#define HSA_FINALIZER_API_TABLE_MAJOR_VERSION 0x02
|
|
#define HSA_IMAGE_API_TABLE_MAJOR_VERSION 0x02
|
|
#define HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION 0x01
|
|
#define HSA_TOOLS_API_TABLE_MAJOR_VERSION 0x01
|
|
#define HSA_PC_SAMPLING_API_TABLE_MAJOR_VERSION 0x01
|
|
|
|
// Step Ids of the Api tables exported by Hsa Core Runtime
|
|
#define HSA_API_TABLE_STEP_VERSION 0x01
|
|
#define HSA_CORE_API_TABLE_STEP_VERSION 0x00
|
|
#define HSA_AMD_EXT_API_TABLE_STEP_VERSION 0x09
|
|
#define HSA_FINALIZER_API_TABLE_STEP_VERSION 0x00
|
|
#define HSA_IMAGE_API_TABLE_STEP_VERSION 0x01
|
|
// Rocprofiler just checks HSA_MAGE_EXT_API_TABLE_STEP_VERSION
|
|
#define HSA_IMAGE_EXT_API_TABLE_STEP_VERSION HSA_IMAGE_API_TABLE_STEP_VERSION
|
|
#define HSA_AQLPROFILE_API_TABLE_STEP_VERSION 0x00
|
|
#define HSA_TOOLS_API_TABLE_STEP_VERSION 0x00
|
|
#define HSA_PC_SAMPLING_API_TABLE_STEP_VERSION 0x00
|
|
|
|
#endif // HSA_RUNTIME_INC_HSA_API_TRACE_VERSION_H
|