2
0

API Tracing Overhaul (#437)

* Update include/rocprofiler-sdk/hsa/*

- split HSA API IDs into separate enumerations
- add support for finalize ext table

* Update include/rocprofiler-sdk/hip/*

- remove compiler_api_args.h
- rocprofiler_hip_api_args_t contains all for HIP runtime and HIP compiler
- ROCPROFILER_HIP_API_ID_ -> ROCPROFILER_HIP_RUNTIME_API_ID_

* Update include/rocprofiler-sdk/marker/table_api_id.h

- ROCPROFILER_MARKER_API_TABLE_ID_ -> ROCPROFILER_MARKER_TABLE_ID_

* Update include/rocprofiler-sdk/*/table_api_id.h

- table_api_id.h -> table_id.h

* Update include/rocprofiler-sdk/*/table_api_id.h

- table_api_id.h -> table_id.h

* Update include/rocprofiler-sdk/fwd.h

- ROCPROFILER_CALLBACK_TRACING_HSA_API split into 4 enum values:
  - ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API
  - ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API
  - ROCPROFILER_CALLBACK_TRACING_HSA_IMAGE_EXT_API
  - ROCPROFILER_CALLBACK_TRACING_HSA_FINALIZE_EXT_API
- ROCPROFILER_BUFFER_TRACING_HSA_API split into 4 enum values:
  - ROCPROFILER_BUFFER_TRACING_HSA_CORE_API
  - ROCPROFILER_BUFFER_TRACING_HSA_AMD_EXT_API
  - ROCPROFILER_BUFFER_TRACING_HSA_IMAGE_EXT_API
  - ROCPROFILER_BUFFER_TRACING_HSA_FINALIZE_EXT_API
- rocprofiler_callback_tracing_code_object_operation_t renamed to rocprofiler_code_object_operation_t (more consistent)
- doxygen updates

* Update include/rocprofiler-sdk/buffer_tracing.h

- improved doxygen comments
- removed unused rocprofiler_buffer_tracing_queue_scheduling_record_t
- removed unused rocprofiler_buffer_tracing_correlation_record_t

* Update include/rocprofiler-sdk/callback_tracing.h

- removed rocprofiler_callback_tracing_hip_compiler_api_data_t
  - rocprofiler_hip_api_args_t and rocprofiler_hip_compiler_api_args_t were combined
  - rocprofiler_hsa_api_retval_t and rocprofiler_hsa_compiler_api_retval_t were combined

* Update lib/rocprofiler-sdk/hsa/*

- utils.hpp
  - formatters for hsa_ext_program_t and hsa_ext_control_directives_t
- defines.hpp
  - removed variadic macros from lib/common/defines.hpp
  - HSA_API_META_DEFINITION, HSA_API_INFO_DEFINITION_0, HSA_API_INFO_DEFINITION_V specialize on table id
- async_copy.cpp
  - ROCPROFILER_HSA_API_ID_* -> ROCPROFILER_HSA_AMD_EXT_API_ID_*
  - add table id to templates
  - improve async_copy_fini
- hsa.hpp
  - add hsa_table_id_lookup
  - add hsa_domain_info
  - add table id to templates
  - add copy_table function
- hsa.cpp
  - add table id to templates
  - require hsa tables to be trivial and standard layout
  - remove set_data_args specialization for hsa_amd_memory_async_copy_rect
  - implement copy_table function
- hsa.def.cpp
  - update enums

* Update lib/rocprofiler-sdk/hip/*

- defines.hpp
  - use lib/common/defines.hpp
  - add hip_table_id_lookup to HIP_API_TABLE_LOOKUP_DEFINITION
- hip.hpp
  - hip_table_id_lookup
  - template iterate_args on table id
  - templated copy_table and update_table
- hip.cpp
  - replaced api_id_bounds with hip_domain_info
  - templated iterate_args on table id
  - templated copy_table and update_table

* Update lib/rocprofiler-sdk/marker/*

- defines.hpp
  - use lib/common/defines.hpp
- marker.cpp
  - updated enums
- marker.def.cpp
  - updated enums

* Update lib/rocprofiler-sdk/tests

- common.hpp
  - ROCPROFILER_CALL_EXPECT
  - callback_data_ext
  - update get_callback_tracing_names with new enums
  - update get_buffer_tracing_names with new enums
- external_correlation.cpp
  - support new HSA API enums
- intercept_table.cpp
  - use test/common.hpp
  - update to new HSA API enums
- registration.cpp
  - support new HSA API enums
- naming.cpp
  - validation for all get_ids(), get_names(), name_by_id(), id_by_name(), etc.

* Update lib/common

- defines.hpp
  - Move IMPL_DETAIL_FOR_EACH_NARG, GET_ADDR_MEMBER_FIELDS, and GET_NAMED_MEMBER_FIELDS here
    - used by HSA, HIP, and Marker
- static_object.hpp
  - is_trivial_standard_layout static constexpr member function
  - suppress register_static_dtor when is_trivial_standard_layout

* Update lib/rocprofiler-sdk/hsa/code_object.*

- name_by_id
- id_by_name
- get_names
- get_ids

* Update lib/rocprofiler-sdk/registration.cpp

- Update rocprofiler_set_api_table for HSA

* Update lib/rocprofiler-sdk/callback_tracing.cpp

- Update for new HSA enums
- Rework to use switch statement
  - rocprofiler_query_callback_tracing_kind_operation_name
  - rocprofiler_iterate_callback_tracing_kind_operations
  - rocprofiler_iterate_callback_tracing_kind_operation_args

* Update lib/rocprofiler-sdk/buffer_tracing.cpp

- Update for new HSA enums
- Rework to use switch statement
  - rocprofiler_query_buffer_tracing_kind_operation_name
  - rocprofiler_iterate_buffer_tracing_kind_operations

* Update lib/rocprofiler-sdk-tool

- helper.cpp
  - update get_buffer_id_names with new enums
  - update get_callback_id_names with new enums
- tools.cpp
  - update to use new HSA enums

* Update samples/common

- added call_stack.hpp
  - source_location struct
  - call_stack_t alias
  - print_call_stack function
- added name_info.hpp
  - utils for getting buffer/callback domain and operation names

* Update samples/api_buffered_tracing/client.cpp

- use samples/common/call_stack.hpp
- use samples/common/name_info.hpp
- update for new HSA enums

* Update samples/api_callback_tracing/client.cpp

- use samples/common/call_stack.hpp
- use samples/common/name_info.hpp
- update for new HSA enums

* Update tests/tools/json-tool.cpp

- update for new HSA enums

* Update tests/rocprofv3/tracing/validate.py

- update for new HSA domain names

* Update samples/counter_collection/main.cpp

- reduce number of kernels to 50,000 since 200,000 causes issues with thread sanitizer

[ROCm/rocprofiler-sdk commit: 3f39339926]
Este cometimento está contido em:
Jonathan R. Madsen
2024-01-30 12:14:26 -06:00
cometido por GitHub
ascendente 65231c485c
cometimento e84f4a7cad
58 ficheiros modificados com 3733 adições e 2695 eliminações
@@ -40,13 +40,22 @@ ROCPROFILER_EXTERN_C_INIT
*/
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind; ///< ::ROCPROFILER_CALLBACK_TRACING_HSA_API
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind;
rocprofiler_tracing_operation_t operation;
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_tracing_operation_t operation; ///< ::rocprofiler_hsa_api_id_t
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_thread_id_t thread_id; ///< id for thread generating this record
/// @var kind
/// @brief ::ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API,
/// ::ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API,
/// ::ROCPROFILER_CALLBACK_TRACING_HSA_IMAGE_EXT_API, or
/// ::ROCPROFILER_CALLBACK_TRACING_HSA_FINALIZE_EXT_API
/// @var operation
/// @brief ::rocprofiler_hsa_core_api_id_t, ::rocprofiler_hsa_amd_ext_api_id_t,
/// ::rocprofiler_hsa_image_ext_api_id_t, or ::rocprofiler_hsa_finalize_ext_api_id_t
} rocprofiler_buffer_tracing_hsa_api_record_t;
/**
@@ -54,14 +63,19 @@ typedef struct
*/
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind; ///< ::ROCPROFILER_CALLBACK_TRACING_HIP_API
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_tracing_operation_t
operation; ///< ::rocprofiler_hip_api_id_t or ::rocprofiler_hip_compiler_api_id_t
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_thread_id_t thread_id; ///< id for thread generating this record
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind;
rocprofiler_tracing_operation_t operation;
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_thread_id_t thread_id; ///< id for thread generating this record
/// @var kind
/// @brief ::ROCPROFILER_CALLBACK_TRACING_HIP_RUNTIME_API or
/// ::ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API
/// @var operation
/// @brief ::rocprofiler_hip_runtime_api_id_t or ::rocprofiler_hip_compiler_api_id_t
} rocprofiler_buffer_tracing_hip_api_record_t;
/**
@@ -70,16 +84,19 @@ typedef struct
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind; ///< ::ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API,
///< ::ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API,
///< or ::ROCPROFILER_CALLBACK_TRACING_MARKER_NAME_API
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_tracing_operation_t
operation; ///< ::rocprofiler_marker_core_api_id_t, ::rocprofiler_marker_control_api_id_t,
///< or ::rocprofiler_marker_name_api_id_t
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_thread_id_t thread_id; ///< id for thread generating this record
rocprofiler_buffer_tracing_kind_t kind;
rocprofiler_tracing_operation_t operation;
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_thread_id_t thread_id; ///< id for thread generating this record
/// @var kind
/// @brief ::ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API,
/// ::ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API, or
/// ::ROCPROFILER_CALLBACK_TRACING_MARKER_NAME_API
/// @brief ::rocprofiler_marker_core_api_id_t, ::rocprofiler_marker_control_api_id_t, or
/// ::rocprofiler_marker_name_api_id_t
} rocprofiler_buffer_tracing_marker_api_record_t;
/**
@@ -88,13 +105,18 @@ typedef struct
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind; ///< ::ROCPROFILER_BUFFER_TRACING_MEMORY_COPY
rocprofiler_buffer_tracing_kind_t kind;
rocprofiler_memory_copy_operation_t operation;
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_memory_copy_operation_t operation; ///< memory copy direction
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
rocprofiler_agent_id_t dst_agent_id; ///< destination agent of copy
rocprofiler_agent_id_t src_agent_id; ///< source agent of copy
/// @var kind
/// @brief ::ROCPROFILER_BUFFER_TRACING_MEMORY_COPY
/// @var operation
/// @brief memory copy direction (::rocprofiler_memory_copy_operation_t)
} rocprofiler_buffer_tracing_memory_copy_record_t;
/**
@@ -142,29 +164,6 @@ typedef struct
// Not Sure What is the info needed here?
} rocprofiler_buffer_tracing_scratch_memory_record_t;
/**
* @brief ROCProfiler Buffer Queue Scheduling Tracer Record. Not implemented.
*/
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_buffer_tracing_kind_t kind; ///< ::ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY
rocprofiler_correlation_id_t correlation_id; ///< correlation ids for record
rocprofiler_timestamp_t start_timestamp; ///< start time in nanoseconds
rocprofiler_timestamp_t end_timestamp; ///< end time in nanoseconds
// Not Sure What is the info needed here?
} rocprofiler_buffer_tracing_queue_scheduling_record_t;
/**
* @brief ROCProfiler Buffer External Correlation Tracer Record. Not implemented.
*/
typedef struct
{
uint64_t size;
rocprofiler_buffer_tracing_kind_t kind;
rocprofiler_correlation_id_t correlation_id;
} rocprofiler_buffer_tracing_correlation_record_t;
/**
* @brief Callback function for mapping @ref rocprofiler_buffer_tracing_kind_t ids to
* string names. @see rocprofiler_iterate_buffer_trace_kind_names.
@@ -63,7 +63,7 @@ typedef struct
} rocprofiler_callback_tracing_hsa_api_data_t;
/**
* @brief ROCProfiler HIP API Tracer Callback Data.
* @brief ROCProfiler HIP runtime and compiler API Tracer Callback Data.
*/
typedef struct
{
@@ -72,16 +72,6 @@ typedef struct
rocprofiler_hip_api_retval_t retval;
} rocprofiler_callback_tracing_hip_api_data_t;
/**
* @brief ROCProfiler HIP API Tracer Callback Data.
*/
typedef struct
{
uint64_t size; ///< size of this struct
rocprofiler_hip_compiler_api_args_t args;
rocprofiler_hip_compiler_api_retval_t retval;
} rocprofiler_callback_tracing_hip_compiler_api_data_t;
/**
* @brief ROCProfiler Marker Tracer Callback Data.
*/
+28 -23
Ver ficheiro
@@ -128,14 +128,19 @@ typedef enum // NOLINT(performance-enum-size)
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_CALLBACK_TRACING_NONE = 0,
ROCPROFILER_CALLBACK_TRACING_HSA_API, ///< Callbacks for HSA functions
ROCPROFILER_CALLBACK_TRACING_HIP_API, ///< Callbacks for HIP functions
ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API, ///< Callbacks for HIP compiler functions
ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API, ///< Callbacks for ROCTx functions
ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API, ///< Callbacks for ROCTx functions
ROCPROFILER_CALLBACK_TRACING_MARKER_NAME_API, ///< Callbacks for ROCTx functions
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT, ///< Callbacks for code object info
ROCPROFILER_CALLBACK_TRACING_KERNEL_DISPATCH, ///< Callbacks for kernel dispatches
ROCPROFILER_CALLBACK_TRACING_HSA_CORE_API, ///< @see ::rocprofiler_hsa_core_api_id_t
ROCPROFILER_CALLBACK_TRACING_HSA_AMD_EXT_API, ///< @see ::rocprofiler_hsa_amd_ext_api_id_t
ROCPROFILER_CALLBACK_TRACING_HSA_IMAGE_EXT_API, ///< @see ::rocprofiler_hsa_image_ext_api_id_t
ROCPROFILER_CALLBACK_TRACING_HSA_FINALIZE_EXT_API, ///< @see
///< ::rocprofiler_hsa_finalize_ext_api_id_t
ROCPROFILER_CALLBACK_TRACING_HIP_RUNTIME_API, ///< @see ::rocprofiler_hip_runtime_api_id_t
ROCPROFILER_CALLBACK_TRACING_HIP_COMPILER_API, ///< @see ::rocprofiler_hip_compiler_api_id_t
ROCPROFILER_CALLBACK_TRACING_MARKER_CORE_API, ///< @see ::rocprofiler_marker_core_api_id_t
ROCPROFILER_CALLBACK_TRACING_MARKER_CONTROL_API, ///< @see
///< ::rocprofiler_marker_control_api_id_t
ROCPROFILER_CALLBACK_TRACING_MARKER_NAME_API, ///< @see ::rocprofiler_marker_name_api_id_t
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT, ///< @see ::rocprofiler_code_object_operation_t
ROCPROFILER_CALLBACK_TRACING_KERNEL_DISPATCH, ///< Callbacks for kernel dispatches
ROCPROFILER_CALLBACK_TRACING_LAST,
} rocprofiler_callback_tracing_kind_t;
@@ -145,19 +150,20 @@ typedef enum // NOLINT(performance-enum-size)
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_BUFFER_TRACING_NONE = 0,
ROCPROFILER_BUFFER_TRACING_HSA_API, ///< Buffer HSA function calls
ROCPROFILER_BUFFER_TRACING_HIP_API, ///< Buffer HIP function calls
ROCPROFILER_BUFFER_TRACING_HIP_COMPILER_API, ///< Buffer HIP compiler function calls
ROCPROFILER_BUFFER_TRACING_MARKER_CORE_API, ///< Buffer ROCTx core function calls
ROCPROFILER_BUFFER_TRACING_MARKER_CONTROL_API, ///< Buffer ROCTx name function calls
ROCPROFILER_BUFFER_TRACING_MARKER_NAME_API, ///< Buffer ROCTx name function calls
ROCPROFILER_BUFFER_TRACING_MEMORY_COPY, ///< Buffer memory copy info
ROCPROFILER_BUFFER_TRACING_KERNEL_DISPATCH, ///< Buffer kernel dispatch info
ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION, ///< Buffer page migration info
ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY, ///< Buffer scratch memory reclaimation info
ROCPROFILER_BUFFER_TRACING_EXTERNAL_CORRELATION, ///< Buffer external correlation info
// To determine if this is possible to implement?
// ROCPROFILER_BUFFER_TRACING_QUEUE_SCHEDULING,
ROCPROFILER_BUFFER_TRACING_HSA_CORE_API, ///< @see ::rocprofiler_hsa_core_api_id_t
ROCPROFILER_BUFFER_TRACING_HSA_AMD_EXT_API, ///< @see ::rocprofiler_hsa_amd_ext_api_id_t
ROCPROFILER_BUFFER_TRACING_HSA_IMAGE_EXT_API, ///< @see ::rocprofiler_hsa_image_ext_api_id_t
ROCPROFILER_BUFFER_TRACING_HSA_FINALIZE_EXT_API, ///< @see
///< ::rocprofiler_hsa_finalize_ext_api_id_t
ROCPROFILER_BUFFER_TRACING_HIP_RUNTIME_API, ///< @see ::rocprofiler_hip_runtime_api_id_t
ROCPROFILER_BUFFER_TRACING_HIP_COMPILER_API, ///< @see ::rocprofiler_hip_compiler_api_id_t
ROCPROFILER_BUFFER_TRACING_MARKER_CORE_API, ///< @see ::rocprofiler_marker_core_api_id_t
ROCPROFILER_BUFFER_TRACING_MARKER_CONTROL_API, ///< @see ::rocprofiler_marker_control_api_id_t
ROCPROFILER_BUFFER_TRACING_MARKER_NAME_API, ///< @see ::rocprofiler_marker_name_api_id_t
ROCPROFILER_BUFFER_TRACING_MEMORY_COPY, ///< @see ::rocprofiler_memory_copy_operation_t
ROCPROFILER_BUFFER_TRACING_KERNEL_DISPATCH, ///< Buffer kernel dispatch info
ROCPROFILER_BUFFER_TRACING_PAGE_MIGRATION, ///< Buffer page migration info
ROCPROFILER_BUFFER_TRACING_SCRATCH_MEMORY, ///< Buffer scratch memory reclaimation info
ROCPROFILER_BUFFER_TRACING_LAST,
} rocprofiler_buffer_tracing_kind_t;
@@ -169,9 +175,8 @@ typedef enum // NOLINT(performance-enum-size)
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT_NONE = 0, ///< Unknown code object operation
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT_LOAD, ///< Code object containing kernel symbols
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT_DEVICE_KERNEL_SYMBOL_REGISTER, ///< Kernel symbols
// ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT_HOST_KERNEL_SYMBOL_REGISTER,
ROCPROFILER_CALLBACK_TRACING_CODE_OBJECT_LAST,
} rocprofiler_callback_tracing_code_object_operation_t;
} rocprofiler_code_object_operation_t;
/**
* @brief Memory Copy Operation.
+1 -3
Ver ficheiro
@@ -24,6 +24,4 @@
#include <rocprofiler-sdk/hip/api_args.h>
#include <rocprofiler-sdk/hip/api_id.h>
#include <rocprofiler-sdk/hip/compiler_api_args.h>
#include <rocprofiler-sdk/hip/compiler_api_id.h>
#include <rocprofiler-sdk/hip/table_api_id.h>
#include <rocprofiler-sdk/hip/table_id.h>
@@ -3,8 +3,8 @@
# Installation of public HIP headers
#
#
set(ROCPROFILER_HIP_HEADER_FILES api_args.h api_id.h compiler_api_args.h
compiler_api_id.h table_api_id.h)
set(ROCPROFILER_HIP_HEADER_FILES api_args.h api_id.h compiler_api_id.h runtime_api_id.h
table_id.h)
install(
FILES ${ROCPROFILER_HIP_HEADER_FILES}
@@ -36,10 +36,87 @@ typedef union rocprofiler_hip_api_retval_u
const char* const_charp_retval;
hipError_t hipError_t_retval;
hipChannelFormatDesc hipChannelFormatDesc_retval;
void** voidpp_retval;
} rocprofiler_hip_api_retval_t;
typedef union rocprofiler_hip_api_args_u
{
// compiler
struct
{
dim3* gridDim;
dim3* blockDim;
size_t* sharedMem;
hipStream_t* stream;
} __hipPopCallConfiguration;
struct
{
dim3 gridDim;
dim3 blockDim;
size_t sharedMem;
hipStream_t stream;
} __hipPushCallConfiguration;
struct
{
const void* data;
} __hipRegisterFatBinary;
struct
{
void** modules;
const void* hostFunction;
char* deviceFunction;
const char* deviceName;
unsigned int threadLimit;
uint3* tid;
uint3* bid;
dim3* blockDim;
dim3* gridDim;
int* wSize;
} __hipRegisterFunction;
struct
{
void* hipModule;
void** pointer;
void* init_value;
const char* name;
size_t size;
unsigned align;
} __hipRegisterManagedVar;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int type;
int ext;
} __hipRegisterSurface;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int type;
int norm;
int ext;
} __hipRegisterTexture;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int ext;
size_t size;
int constant;
int global;
} __hipRegisterVar;
struct
{
void** modules;
} __hipUnregisterFatBinary;
// runtime
struct
{
uint32_t id;
@@ -22,440 +22,5 @@
#pragma once
/**
* @brief ROCProfiler enumeration of HIP API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HIP_API_ID_NONE = -1,
ROCPROFILER_HIP_API_ID_hipApiName = 0,
ROCPROFILER_HIP_API_ID_hipArray3DCreate,
ROCPROFILER_HIP_API_ID_hipArray3DGetDescriptor,
ROCPROFILER_HIP_API_ID_hipArrayCreate,
ROCPROFILER_HIP_API_ID_hipArrayDestroy,
ROCPROFILER_HIP_API_ID_hipArrayGetDescriptor,
ROCPROFILER_HIP_API_ID_hipArrayGetInfo,
ROCPROFILER_HIP_API_ID_hipBindTexture, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipBindTexture2D, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipBindTextureToArray, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipBindTextureToMipmappedArray, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipChooseDevice,
ROCPROFILER_HIP_API_ID_hipChooseDeviceR0000,
ROCPROFILER_HIP_API_ID_hipConfigureCall,
ROCPROFILER_HIP_API_ID_hipCreateSurfaceObject,
ROCPROFILER_HIP_API_ID_hipCreateTextureObject, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipCtxCreate,
ROCPROFILER_HIP_API_ID_hipCtxDestroy,
ROCPROFILER_HIP_API_ID_hipCtxDisablePeerAccess,
ROCPROFILER_HIP_API_ID_hipCtxEnablePeerAccess,
ROCPROFILER_HIP_API_ID_hipCtxGetApiVersion,
ROCPROFILER_HIP_API_ID_hipCtxGetCacheConfig,
ROCPROFILER_HIP_API_ID_hipCtxGetCurrent,
ROCPROFILER_HIP_API_ID_hipCtxGetDevice,
ROCPROFILER_HIP_API_ID_hipCtxGetFlags,
ROCPROFILER_HIP_API_ID_hipCtxGetSharedMemConfig,
ROCPROFILER_HIP_API_ID_hipCtxPopCurrent,
ROCPROFILER_HIP_API_ID_hipCtxPushCurrent,
ROCPROFILER_HIP_API_ID_hipCtxSetCacheConfig,
ROCPROFILER_HIP_API_ID_hipCtxSetCurrent,
ROCPROFILER_HIP_API_ID_hipCtxSetSharedMemConfig,
ROCPROFILER_HIP_API_ID_hipCtxSynchronize,
ROCPROFILER_HIP_API_ID_hipDestroyExternalMemory,
ROCPROFILER_HIP_API_ID_hipDestroyExternalSemaphore,
ROCPROFILER_HIP_API_ID_hipDestroySurfaceObject,
ROCPROFILER_HIP_API_ID_hipDestroyTextureObject, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipDeviceCanAccessPeer,
ROCPROFILER_HIP_API_ID_hipDeviceComputeCapability,
ROCPROFILER_HIP_API_ID_hipDeviceDisablePeerAccess,
ROCPROFILER_HIP_API_ID_hipDeviceEnablePeerAccess,
ROCPROFILER_HIP_API_ID_hipDeviceGet,
ROCPROFILER_HIP_API_ID_hipDeviceGetAttribute,
ROCPROFILER_HIP_API_ID_hipDeviceGetByPCIBusId,
ROCPROFILER_HIP_API_ID_hipDeviceGetCacheConfig,
ROCPROFILER_HIP_API_ID_hipDeviceGetDefaultMemPool,
ROCPROFILER_HIP_API_ID_hipDeviceGetGraphMemAttribute,
ROCPROFILER_HIP_API_ID_hipDeviceGetLimit,
ROCPROFILER_HIP_API_ID_hipDeviceGetMemPool,
ROCPROFILER_HIP_API_ID_hipDeviceGetName,
ROCPROFILER_HIP_API_ID_hipDeviceGetP2PAttribute,
ROCPROFILER_HIP_API_ID_hipDeviceGetPCIBusId,
ROCPROFILER_HIP_API_ID_hipDeviceGetSharedMemConfig,
ROCPROFILER_HIP_API_ID_hipDeviceGetStreamPriorityRange,
ROCPROFILER_HIP_API_ID_hipDeviceGetUuid,
ROCPROFILER_HIP_API_ID_hipDeviceGraphMemTrim,
ROCPROFILER_HIP_API_ID_hipDevicePrimaryCtxGetState,
ROCPROFILER_HIP_API_ID_hipDevicePrimaryCtxRelease,
ROCPROFILER_HIP_API_ID_hipDevicePrimaryCtxReset,
ROCPROFILER_HIP_API_ID_hipDevicePrimaryCtxRetain,
ROCPROFILER_HIP_API_ID_hipDevicePrimaryCtxSetFlags,
ROCPROFILER_HIP_API_ID_hipDeviceReset,
ROCPROFILER_HIP_API_ID_hipDeviceSetCacheConfig,
ROCPROFILER_HIP_API_ID_hipDeviceSetGraphMemAttribute,
ROCPROFILER_HIP_API_ID_hipDeviceSetLimit,
ROCPROFILER_HIP_API_ID_hipDeviceSetMemPool,
ROCPROFILER_HIP_API_ID_hipDeviceSetSharedMemConfig,
ROCPROFILER_HIP_API_ID_hipDeviceSynchronize,
ROCPROFILER_HIP_API_ID_hipDeviceTotalMem,
ROCPROFILER_HIP_API_ID_hipDriverGetVersion,
ROCPROFILER_HIP_API_ID_hipDrvGetErrorName,
ROCPROFILER_HIP_API_ID_hipDrvGetErrorString,
ROCPROFILER_HIP_API_ID_hipDrvGraphAddMemcpyNode,
ROCPROFILER_HIP_API_ID_hipDrvMemcpy2DUnaligned,
ROCPROFILER_HIP_API_ID_hipDrvMemcpy3D,
ROCPROFILER_HIP_API_ID_hipDrvMemcpy3DAsync,
ROCPROFILER_HIP_API_ID_hipDrvPointerGetAttributes,
ROCPROFILER_HIP_API_ID_hipEventCreate,
ROCPROFILER_HIP_API_ID_hipEventCreateWithFlags,
ROCPROFILER_HIP_API_ID_hipEventDestroy,
ROCPROFILER_HIP_API_ID_hipEventElapsedTime,
ROCPROFILER_HIP_API_ID_hipEventQuery,
ROCPROFILER_HIP_API_ID_hipEventRecord,
ROCPROFILER_HIP_API_ID_hipEventSynchronize,
ROCPROFILER_HIP_API_ID_hipExtGetLinkTypeAndHopCount,
ROCPROFILER_HIP_API_ID_hipExtLaunchKernel,
ROCPROFILER_HIP_API_ID_hipExtLaunchMultiKernelMultiDevice,
ROCPROFILER_HIP_API_ID_hipExtMallocWithFlags,
ROCPROFILER_HIP_API_ID_hipExtStreamCreateWithCUMask,
ROCPROFILER_HIP_API_ID_hipExtStreamGetCUMask,
ROCPROFILER_HIP_API_ID_hipExternalMemoryGetMappedBuffer,
ROCPROFILER_HIP_API_ID_hipFree,
ROCPROFILER_HIP_API_ID_hipFreeArray,
ROCPROFILER_HIP_API_ID_hipFreeAsync,
ROCPROFILER_HIP_API_ID_hipFreeHost,
ROCPROFILER_HIP_API_ID_hipFreeMipmappedArray,
ROCPROFILER_HIP_API_ID_hipFuncGetAttribute,
ROCPROFILER_HIP_API_ID_hipFuncGetAttributes,
ROCPROFILER_HIP_API_ID_hipFuncSetAttribute,
ROCPROFILER_HIP_API_ID_hipFuncSetCacheConfig,
ROCPROFILER_HIP_API_ID_hipFuncSetSharedMemConfig,
ROCPROFILER_HIP_API_ID_hipGLGetDevices,
ROCPROFILER_HIP_API_ID_hipGetChannelDesc,
ROCPROFILER_HIP_API_ID_hipGetDevice,
ROCPROFILER_HIP_API_ID_hipGetDeviceCount,
ROCPROFILER_HIP_API_ID_hipGetDeviceFlags,
ROCPROFILER_HIP_API_ID_hipGetDevicePropertiesR0600,
ROCPROFILER_HIP_API_ID_hipGetDevicePropertiesR0000,
ROCPROFILER_HIP_API_ID_hipGetErrorName,
ROCPROFILER_HIP_API_ID_hipGetErrorString,
ROCPROFILER_HIP_API_ID_hipGetLastError,
ROCPROFILER_HIP_API_ID_hipGetMipmappedArrayLevel,
ROCPROFILER_HIP_API_ID_hipGetSymbolAddress,
ROCPROFILER_HIP_API_ID_hipGetSymbolSize,
ROCPROFILER_HIP_API_ID_hipGetTextureAlignmentOffset, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipGetTextureObjectResourceDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipGetTextureObjectResourceViewDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipGetTextureObjectTextureDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipGetTextureReference, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipGraphAddChildGraphNode,
ROCPROFILER_HIP_API_ID_hipGraphAddDependencies,
ROCPROFILER_HIP_API_ID_hipGraphAddEmptyNode,
ROCPROFILER_HIP_API_ID_hipGraphAddEventRecordNode,
ROCPROFILER_HIP_API_ID_hipGraphAddEventWaitNode,
ROCPROFILER_HIP_API_ID_hipGraphAddHostNode,
ROCPROFILER_HIP_API_ID_hipGraphAddKernelNode,
ROCPROFILER_HIP_API_ID_hipGraphAddMemAllocNode,
ROCPROFILER_HIP_API_ID_hipGraphAddMemFreeNode,
ROCPROFILER_HIP_API_ID_hipGraphAddMemcpyNode,
ROCPROFILER_HIP_API_ID_hipGraphAddMemcpyNode1D,
ROCPROFILER_HIP_API_ID_hipGraphAddMemcpyNodeFromSymbol,
ROCPROFILER_HIP_API_ID_hipGraphAddMemcpyNodeToSymbol,
ROCPROFILER_HIP_API_ID_hipGraphAddMemsetNode,
ROCPROFILER_HIP_API_ID_hipGraphChildGraphNodeGetGraph,
ROCPROFILER_HIP_API_ID_hipGraphClone,
ROCPROFILER_HIP_API_ID_hipGraphCreate,
ROCPROFILER_HIP_API_ID_hipGraphDebugDotPrint,
ROCPROFILER_HIP_API_ID_hipGraphDestroy,
ROCPROFILER_HIP_API_ID_hipGraphDestroyNode,
ROCPROFILER_HIP_API_ID_hipGraphEventRecordNodeGetEvent,
ROCPROFILER_HIP_API_ID_hipGraphEventRecordNodeSetEvent,
ROCPROFILER_HIP_API_ID_hipGraphEventWaitNodeGetEvent,
ROCPROFILER_HIP_API_ID_hipGraphEventWaitNodeSetEvent,
ROCPROFILER_HIP_API_ID_hipGraphExecChildGraphNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphExecDestroy,
ROCPROFILER_HIP_API_ID_hipGraphExecEventRecordNodeSetEvent,
ROCPROFILER_HIP_API_ID_hipGraphExecEventWaitNodeSetEvent,
ROCPROFILER_HIP_API_ID_hipGraphExecHostNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphExecKernelNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphExecMemcpyNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphExecMemcpyNodeSetParams1D,
ROCPROFILER_HIP_API_ID_hipGraphExecMemcpyNodeSetParamsFromSymbol,
ROCPROFILER_HIP_API_ID_hipGraphExecMemcpyNodeSetParamsToSymbol,
ROCPROFILER_HIP_API_ID_hipGraphExecMemsetNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphExecUpdate,
ROCPROFILER_HIP_API_ID_hipGraphGetEdges,
ROCPROFILER_HIP_API_ID_hipGraphGetNodes,
ROCPROFILER_HIP_API_ID_hipGraphGetRootNodes,
ROCPROFILER_HIP_API_ID_hipGraphHostNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphHostNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphInstantiate,
ROCPROFILER_HIP_API_ID_hipGraphInstantiateWithFlags,
ROCPROFILER_HIP_API_ID_hipGraphKernelNodeCopyAttributes,
ROCPROFILER_HIP_API_ID_hipGraphKernelNodeGetAttribute,
ROCPROFILER_HIP_API_ID_hipGraphKernelNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphKernelNodeSetAttribute,
ROCPROFILER_HIP_API_ID_hipGraphKernelNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphLaunch,
ROCPROFILER_HIP_API_ID_hipGraphMemAllocNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphMemFreeNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphMemcpyNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphMemcpyNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphMemcpyNodeSetParams1D,
ROCPROFILER_HIP_API_ID_hipGraphMemcpyNodeSetParamsFromSymbol,
ROCPROFILER_HIP_API_ID_hipGraphMemcpyNodeSetParamsToSymbol,
ROCPROFILER_HIP_API_ID_hipGraphMemsetNodeGetParams,
ROCPROFILER_HIP_API_ID_hipGraphMemsetNodeSetParams,
ROCPROFILER_HIP_API_ID_hipGraphNodeFindInClone,
ROCPROFILER_HIP_API_ID_hipGraphNodeGetDependencies,
ROCPROFILER_HIP_API_ID_hipGraphNodeGetDependentNodes,
ROCPROFILER_HIP_API_ID_hipGraphNodeGetEnabled,
ROCPROFILER_HIP_API_ID_hipGraphNodeGetType,
ROCPROFILER_HIP_API_ID_hipGraphNodeSetEnabled,
ROCPROFILER_HIP_API_ID_hipGraphReleaseUserObject,
ROCPROFILER_HIP_API_ID_hipGraphRemoveDependencies,
ROCPROFILER_HIP_API_ID_hipGraphRetainUserObject,
ROCPROFILER_HIP_API_ID_hipGraphUpload,
ROCPROFILER_HIP_API_ID_hipGraphicsGLRegisterBuffer,
ROCPROFILER_HIP_API_ID_hipGraphicsGLRegisterImage,
ROCPROFILER_HIP_API_ID_hipGraphicsMapResources,
ROCPROFILER_HIP_API_ID_hipGraphicsResourceGetMappedPointer,
ROCPROFILER_HIP_API_ID_hipGraphicsSubResourceGetMappedArray,
ROCPROFILER_HIP_API_ID_hipGraphicsUnmapResources,
ROCPROFILER_HIP_API_ID_hipGraphicsUnregisterResource,
ROCPROFILER_HIP_API_ID_hipHostAlloc,
ROCPROFILER_HIP_API_ID_hipHostFree,
ROCPROFILER_HIP_API_ID_hipHostGetDevicePointer,
ROCPROFILER_HIP_API_ID_hipHostGetFlags,
ROCPROFILER_HIP_API_ID_hipHostMalloc,
ROCPROFILER_HIP_API_ID_hipHostRegister,
ROCPROFILER_HIP_API_ID_hipHostUnregister,
ROCPROFILER_HIP_API_ID_hipImportExternalMemory,
ROCPROFILER_HIP_API_ID_hipImportExternalSemaphore,
ROCPROFILER_HIP_API_ID_hipInit,
ROCPROFILER_HIP_API_ID_hipIpcCloseMemHandle,
ROCPROFILER_HIP_API_ID_hipIpcGetEventHandle,
ROCPROFILER_HIP_API_ID_hipIpcGetMemHandle,
ROCPROFILER_HIP_API_ID_hipIpcOpenEventHandle,
ROCPROFILER_HIP_API_ID_hipIpcOpenMemHandle,
ROCPROFILER_HIP_API_ID_hipKernelNameRef,
ROCPROFILER_HIP_API_ID_hipKernelNameRefByPtr,
ROCPROFILER_HIP_API_ID_hipLaunchByPtr,
ROCPROFILER_HIP_API_ID_hipLaunchCooperativeKernel,
ROCPROFILER_HIP_API_ID_hipLaunchCooperativeKernelMultiDevice,
ROCPROFILER_HIP_API_ID_hipLaunchHostFunc,
ROCPROFILER_HIP_API_ID_hipLaunchKernel,
ROCPROFILER_HIP_API_ID_hipMalloc,
ROCPROFILER_HIP_API_ID_hipMalloc3D,
ROCPROFILER_HIP_API_ID_hipMalloc3DArray,
ROCPROFILER_HIP_API_ID_hipMallocArray,
ROCPROFILER_HIP_API_ID_hipMallocAsync,
ROCPROFILER_HIP_API_ID_hipMallocFromPoolAsync,
ROCPROFILER_HIP_API_ID_hipMallocHost,
ROCPROFILER_HIP_API_ID_hipMallocManaged,
ROCPROFILER_HIP_API_ID_hipMallocMipmappedArray,
ROCPROFILER_HIP_API_ID_hipMallocPitch,
ROCPROFILER_HIP_API_ID_hipMemAddressFree,
ROCPROFILER_HIP_API_ID_hipMemAddressReserve,
ROCPROFILER_HIP_API_ID_hipMemAdvise,
ROCPROFILER_HIP_API_ID_hipMemAllocHost,
ROCPROFILER_HIP_API_ID_hipMemAllocPitch,
ROCPROFILER_HIP_API_ID_hipMemCreate,
ROCPROFILER_HIP_API_ID_hipMemExportToShareableHandle,
ROCPROFILER_HIP_API_ID_hipMemGetAccess,
ROCPROFILER_HIP_API_ID_hipMemGetAddressRange,
ROCPROFILER_HIP_API_ID_hipMemGetAllocationGranularity,
ROCPROFILER_HIP_API_ID_hipMemGetAllocationPropertiesFromHandle,
ROCPROFILER_HIP_API_ID_hipMemGetInfo,
ROCPROFILER_HIP_API_ID_hipMemImportFromShareableHandle,
ROCPROFILER_HIP_API_ID_hipMemMap,
ROCPROFILER_HIP_API_ID_hipMemMapArrayAsync,
ROCPROFILER_HIP_API_ID_hipMemPoolCreate,
ROCPROFILER_HIP_API_ID_hipMemPoolDestroy,
ROCPROFILER_HIP_API_ID_hipMemPoolExportPointer,
ROCPROFILER_HIP_API_ID_hipMemPoolExportToShareableHandle,
ROCPROFILER_HIP_API_ID_hipMemPoolGetAccess,
ROCPROFILER_HIP_API_ID_hipMemPoolGetAttribute,
ROCPROFILER_HIP_API_ID_hipMemPoolImportFromShareableHandle,
ROCPROFILER_HIP_API_ID_hipMemPoolImportPointer,
ROCPROFILER_HIP_API_ID_hipMemPoolSetAccess,
ROCPROFILER_HIP_API_ID_hipMemPoolSetAttribute,
ROCPROFILER_HIP_API_ID_hipMemPoolTrimTo,
ROCPROFILER_HIP_API_ID_hipMemPrefetchAsync,
ROCPROFILER_HIP_API_ID_hipMemPtrGetInfo,
ROCPROFILER_HIP_API_ID_hipMemRangeGetAttribute,
ROCPROFILER_HIP_API_ID_hipMemRangeGetAttributes,
ROCPROFILER_HIP_API_ID_hipMemRelease,
ROCPROFILER_HIP_API_ID_hipMemRetainAllocationHandle,
ROCPROFILER_HIP_API_ID_hipMemSetAccess,
ROCPROFILER_HIP_API_ID_hipMemUnmap,
ROCPROFILER_HIP_API_ID_hipMemcpy,
ROCPROFILER_HIP_API_ID_hipMemcpy2D,
ROCPROFILER_HIP_API_ID_hipMemcpy2DAsync,
ROCPROFILER_HIP_API_ID_hipMemcpy2DFromArray,
ROCPROFILER_HIP_API_ID_hipMemcpy2DFromArrayAsync,
ROCPROFILER_HIP_API_ID_hipMemcpy2DToArray,
ROCPROFILER_HIP_API_ID_hipMemcpy2DToArrayAsync,
ROCPROFILER_HIP_API_ID_hipMemcpy3D,
ROCPROFILER_HIP_API_ID_hipMemcpy3DAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyAtoH,
ROCPROFILER_HIP_API_ID_hipMemcpyDtoD,
ROCPROFILER_HIP_API_ID_hipMemcpyDtoDAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyDtoH,
ROCPROFILER_HIP_API_ID_hipMemcpyDtoHAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyFromArray,
ROCPROFILER_HIP_API_ID_hipMemcpyFromSymbol,
ROCPROFILER_HIP_API_ID_hipMemcpyFromSymbolAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyHtoA,
ROCPROFILER_HIP_API_ID_hipMemcpyHtoD,
ROCPROFILER_HIP_API_ID_hipMemcpyHtoDAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyParam2D,
ROCPROFILER_HIP_API_ID_hipMemcpyParam2DAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyPeer,
ROCPROFILER_HIP_API_ID_hipMemcpyPeerAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyToArray,
ROCPROFILER_HIP_API_ID_hipMemcpyToSymbol,
ROCPROFILER_HIP_API_ID_hipMemcpyToSymbolAsync,
ROCPROFILER_HIP_API_ID_hipMemcpyWithStream,
ROCPROFILER_HIP_API_ID_hipMemset,
ROCPROFILER_HIP_API_ID_hipMemset2D,
ROCPROFILER_HIP_API_ID_hipMemset2DAsync,
ROCPROFILER_HIP_API_ID_hipMemset3D,
ROCPROFILER_HIP_API_ID_hipMemset3DAsync,
ROCPROFILER_HIP_API_ID_hipMemsetAsync,
ROCPROFILER_HIP_API_ID_hipMemsetD16,
ROCPROFILER_HIP_API_ID_hipMemsetD16Async,
ROCPROFILER_HIP_API_ID_hipMemsetD32,
ROCPROFILER_HIP_API_ID_hipMemsetD32Async,
ROCPROFILER_HIP_API_ID_hipMemsetD8,
ROCPROFILER_HIP_API_ID_hipMemsetD8Async,
ROCPROFILER_HIP_API_ID_hipMipmappedArrayCreate,
ROCPROFILER_HIP_API_ID_hipMipmappedArrayDestroy,
ROCPROFILER_HIP_API_ID_hipMipmappedArrayGetLevel,
ROCPROFILER_HIP_API_ID_hipModuleGetFunction,
ROCPROFILER_HIP_API_ID_hipModuleGetGlobal,
ROCPROFILER_HIP_API_ID_hipModuleGetTexRef,
ROCPROFILER_HIP_API_ID_hipModuleLaunchCooperativeKernel,
ROCPROFILER_HIP_API_ID_hipModuleLaunchCooperativeKernelMultiDevice,
ROCPROFILER_HIP_API_ID_hipModuleLaunchKernel,
ROCPROFILER_HIP_API_ID_hipModuleLoad,
ROCPROFILER_HIP_API_ID_hipModuleLoadData,
ROCPROFILER_HIP_API_ID_hipModuleLoadDataEx,
ROCPROFILER_HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor,
ROCPROFILER_HIP_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags,
ROCPROFILER_HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSize,
ROCPROFILER_HIP_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags,
ROCPROFILER_HIP_API_ID_hipModuleUnload,
ROCPROFILER_HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor,
ROCPROFILER_HIP_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags,
ROCPROFILER_HIP_API_ID_hipOccupancyMaxPotentialBlockSize,
ROCPROFILER_HIP_API_ID_hipPeekAtLastError,
ROCPROFILER_HIP_API_ID_hipPointerGetAttribute,
ROCPROFILER_HIP_API_ID_hipPointerGetAttributes,
ROCPROFILER_HIP_API_ID_hipPointerSetAttribute,
ROCPROFILER_HIP_API_ID_hipProfilerStart,
ROCPROFILER_HIP_API_ID_hipProfilerStop,
ROCPROFILER_HIP_API_ID_hipRuntimeGetVersion,
ROCPROFILER_HIP_API_ID_hipSetDevice,
ROCPROFILER_HIP_API_ID_hipSetDeviceFlags,
ROCPROFILER_HIP_API_ID_hipSetupArgument,
ROCPROFILER_HIP_API_ID_hipSignalExternalSemaphoresAsync,
ROCPROFILER_HIP_API_ID_hipStreamAddCallback,
ROCPROFILER_HIP_API_ID_hipStreamAttachMemAsync,
ROCPROFILER_HIP_API_ID_hipStreamBeginCapture,
ROCPROFILER_HIP_API_ID_hipStreamCreate,
ROCPROFILER_HIP_API_ID_hipStreamCreateWithFlags,
ROCPROFILER_HIP_API_ID_hipStreamCreateWithPriority,
ROCPROFILER_HIP_API_ID_hipStreamDestroy,
ROCPROFILER_HIP_API_ID_hipStreamEndCapture,
ROCPROFILER_HIP_API_ID_hipStreamGetCaptureInfo,
ROCPROFILER_HIP_API_ID_hipStreamGetCaptureInfo_v2,
ROCPROFILER_HIP_API_ID_hipStreamGetDevice,
ROCPROFILER_HIP_API_ID_hipStreamGetFlags,
ROCPROFILER_HIP_API_ID_hipStreamGetPriority,
ROCPROFILER_HIP_API_ID_hipStreamIsCapturing,
ROCPROFILER_HIP_API_ID_hipStreamQuery,
ROCPROFILER_HIP_API_ID_hipStreamSynchronize,
ROCPROFILER_HIP_API_ID_hipStreamUpdateCaptureDependencies,
ROCPROFILER_HIP_API_ID_hipStreamWaitEvent,
ROCPROFILER_HIP_API_ID_hipStreamWaitValue32,
ROCPROFILER_HIP_API_ID_hipStreamWaitValue64,
ROCPROFILER_HIP_API_ID_hipStreamWriteValue32,
ROCPROFILER_HIP_API_ID_hipStreamWriteValue64,
ROCPROFILER_HIP_API_ID_hipTexObjectCreate, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexObjectDestroy, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexObjectGetResourceDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexObjectGetResourceViewDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexObjectGetTextureDesc, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefGetAddress,
ROCPROFILER_HIP_API_ID_hipTexRefGetAddressMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefGetFilterMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefGetFlags,
ROCPROFILER_HIP_API_ID_hipTexRefGetFormat,
ROCPROFILER_HIP_API_ID_hipTexRefGetMaxAnisotropy,
ROCPROFILER_HIP_API_ID_hipTexRefGetMipMappedArray,
ROCPROFILER_HIP_API_ID_hipTexRefGetMipmapFilterMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefGetMipmapLevelBias,
ROCPROFILER_HIP_API_ID_hipTexRefGetMipmapLevelClamp,
ROCPROFILER_HIP_API_ID_hipTexRefSetAddress,
ROCPROFILER_HIP_API_ID_hipTexRefSetAddress2D,
ROCPROFILER_HIP_API_ID_hipTexRefSetAddressMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefSetArray,
ROCPROFILER_HIP_API_ID_hipTexRefSetBorderColor,
ROCPROFILER_HIP_API_ID_hipTexRefSetFilterMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefSetFlags,
ROCPROFILER_HIP_API_ID_hipTexRefSetFormat,
ROCPROFILER_HIP_API_ID_hipTexRefSetMaxAnisotropy,
ROCPROFILER_HIP_API_ID_hipTexRefSetMipmapFilterMode, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipTexRefSetMipmapLevelBias,
ROCPROFILER_HIP_API_ID_hipTexRefSetMipmapLevelClamp,
ROCPROFILER_HIP_API_ID_hipTexRefSetMipmappedArray,
ROCPROFILER_HIP_API_ID_hipThreadExchangeStreamCaptureMode,
ROCPROFILER_HIP_API_ID_hipUnbindTexture, // deprecated or removed
ROCPROFILER_HIP_API_ID_hipUserObjectCreate,
ROCPROFILER_HIP_API_ID_hipUserObjectRelease,
ROCPROFILER_HIP_API_ID_hipUserObjectRetain,
ROCPROFILER_HIP_API_ID_hipWaitExternalSemaphoresAsync,
ROCPROFILER_HIP_API_ID_hipCreateChannelDesc,
ROCPROFILER_HIP_API_ID_hipExtModuleLaunchKernel,
ROCPROFILER_HIP_API_ID_hipHccModuleLaunchKernel,
ROCPROFILER_HIP_API_ID_hipMemcpy_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyToSymbol_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyFromSymbol_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2D_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2DFromArray_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy3D_spt,
ROCPROFILER_HIP_API_ID_hipMemset_spt,
ROCPROFILER_HIP_API_ID_hipMemsetAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemset2D_spt,
ROCPROFILER_HIP_API_ID_hipMemset2DAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemset3DAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemset3D_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy3DAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2DAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyFromSymbolAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyToSymbolAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpyFromArray_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2DToArray_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2DFromArrayAsync_spt,
ROCPROFILER_HIP_API_ID_hipMemcpy2DToArrayAsync_spt,
ROCPROFILER_HIP_API_ID_hipStreamQuery_spt,
ROCPROFILER_HIP_API_ID_hipStreamSynchronize_spt,
ROCPROFILER_HIP_API_ID_hipStreamGetPriority_spt,
ROCPROFILER_HIP_API_ID_hipStreamWaitEvent_spt,
ROCPROFILER_HIP_API_ID_hipStreamGetFlags_spt,
ROCPROFILER_HIP_API_ID_hipStreamAddCallback_spt,
ROCPROFILER_HIP_API_ID_hipEventRecord_spt,
ROCPROFILER_HIP_API_ID_hipLaunchCooperativeKernel_spt,
ROCPROFILER_HIP_API_ID_hipLaunchKernel_spt,
ROCPROFILER_HIP_API_ID_hipGraphLaunch_spt,
ROCPROFILER_HIP_API_ID_hipStreamBeginCapture_spt,
ROCPROFILER_HIP_API_ID_hipStreamEndCapture_spt,
ROCPROFILER_HIP_API_ID_hipStreamIsCapturing_spt,
ROCPROFILER_HIP_API_ID_hipStreamGetCaptureInfo_spt,
ROCPROFILER_HIP_API_ID_hipStreamGetCaptureInfo_v2_spt,
ROCPROFILER_HIP_API_ID_hipLaunchHostFunc_spt,
ROCPROFILER_HIP_API_ID_hipGetStreamDeviceId,
// ROCPROFILER_HIP_API_ID_hipDrvGraphAddMemsetNode,
ROCPROFILER_HIP_API_ID_LAST,
} rocprofiler_hip_api_id_t;
#include "compiler_api_id.h"
#include "runtime_api_id.h"
@@ -1,112 +0,0 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
#include <rocprofiler-sdk/defines.h>
#include <hip/hip_runtime.h>
#include <hip/hip_version.h>
typedef union rocprofiler_hip_compiler_api_retval_u
{
hipError_t hipError_t_retval;
void** voidpp_retval;
} rocprofiler_hip_compiler_api_retval_t;
typedef union rocprofiler_hip_compiler_api_args_u
{
struct
{
dim3* gridDim;
dim3* blockDim;
size_t* sharedMem;
hipStream_t* stream;
} __hipPopCallConfiguration;
struct
{
dim3 gridDim;
dim3 blockDim;
size_t sharedMem;
hipStream_t stream;
} __hipPushCallConfiguration;
struct
{
const void* data;
} __hipRegisterFatBinary;
struct
{
void** modules;
const void* hostFunction;
char* deviceFunction;
const char* deviceName;
unsigned int threadLimit;
uint3* tid;
uint3* bid;
dim3* blockDim;
dim3* gridDim;
int* wSize;
} __hipRegisterFunction;
struct
{
void* hipModule;
void** pointer;
void* init_value;
const char* name;
size_t size;
unsigned align;
} __hipRegisterManagedVar;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int type;
int ext;
} __hipRegisterSurface;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int type;
int norm;
int ext;
} __hipRegisterTexture;
struct
{
void** modules;
void* var;
char* hostVar;
char* deviceVar;
int ext;
size_t size;
int constant;
int global;
} __hipRegisterVar;
struct
{
void** modules;
} __hipUnregisterFatBinary;
} rocprofiler_hip_compiler_api_args_t;
@@ -0,0 +1,461 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
/**
* @brief ROCProfiler enumeration of HIP runtime API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HIP_RUNTIME_API_ID_NONE = -1,
ROCPROFILER_HIP_RUNTIME_API_ID_hipApiName = 0,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArray3DCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArray3DGetDescriptor,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArrayCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArrayDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArrayGetDescriptor,
ROCPROFILER_HIP_RUNTIME_API_ID_hipArrayGetInfo,
ROCPROFILER_HIP_RUNTIME_API_ID_hipBindTexture, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipBindTexture2D, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipBindTextureToArray, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipBindTextureToMipmappedArray, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipChooseDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipChooseDeviceR0000,
ROCPROFILER_HIP_RUNTIME_API_ID_hipConfigureCall,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCreateSurfaceObject,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCreateTextureObject, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxDisablePeerAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxEnablePeerAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetApiVersion,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetCacheConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetCurrent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxGetSharedMemConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxPopCurrent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxPushCurrent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxSetCacheConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxSetCurrent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxSetSharedMemConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCtxSynchronize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDestroyExternalMemory,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDestroyExternalSemaphore,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDestroySurfaceObject,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDestroyTextureObject, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceCanAccessPeer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceComputeCapability,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceDisablePeerAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceEnablePeerAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGet,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetByPCIBusId,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetCacheConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetDefaultMemPool,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetGraphMemAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetLimit,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetMemPool,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetName,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetP2PAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetPCIBusId,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetSharedMemConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetStreamPriorityRange,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGetUuid,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceGraphMemTrim,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDevicePrimaryCtxGetState,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDevicePrimaryCtxRelease,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDevicePrimaryCtxReset,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDevicePrimaryCtxRetain,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDevicePrimaryCtxSetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceReset,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSetCacheConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSetGraphMemAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSetLimit,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSetMemPool,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSetSharedMemConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceSynchronize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDeviceTotalMem,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDriverGetVersion,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvGetErrorName,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvGetErrorString,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvGraphAddMemcpyNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvMemcpy2DUnaligned,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvMemcpy3D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvMemcpy3DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvPointerGetAttributes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventCreateWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventElapsedTime,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventQuery,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventRecord,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventSynchronize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtGetLinkTypeAndHopCount,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtLaunchKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtLaunchMultiKernelMultiDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtMallocWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtStreamCreateWithCUMask,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtStreamGetCUMask,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExternalMemoryGetMappedBuffer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFree,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFreeArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFreeAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFreeHost,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFreeMipmappedArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFuncGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFuncGetAttributes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFuncSetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFuncSetCacheConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipFuncSetSharedMemConfig,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGLGetDevices,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetChannelDesc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetDeviceCount,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetDeviceFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetDevicePropertiesR0600,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetDevicePropertiesR0000,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetErrorName,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetErrorString,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetLastError,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetMipmappedArrayLevel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetSymbolAddress,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetSymbolSize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetTextureAlignmentOffset, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetTextureObjectResourceDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetTextureObjectResourceViewDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetTextureObjectTextureDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetTextureReference, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddChildGraphNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddDependencies,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddEmptyNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddEventRecordNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddEventWaitNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddHostNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddKernelNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemAllocNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemFreeNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemcpyNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemcpyNode1D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemcpyNodeFromSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemcpyNodeToSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphAddMemsetNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphChildGraphNodeGetGraph,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphClone,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphDebugDotPrint,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphDestroyNode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphEventRecordNodeGetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphEventRecordNodeSetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphEventWaitNodeGetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphEventWaitNodeSetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecChildGraphNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecEventRecordNodeSetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecEventWaitNodeSetEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecHostNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecKernelNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecMemcpyNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecMemcpyNodeSetParams1D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecMemcpyNodeSetParamsFromSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecMemcpyNodeSetParamsToSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecMemsetNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphExecUpdate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphGetEdges,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphGetNodes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphGetRootNodes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphHostNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphHostNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphInstantiate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphInstantiateWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphKernelNodeCopyAttributes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphKernelNodeGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphKernelNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphKernelNodeSetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphKernelNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphLaunch,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemAllocNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemFreeNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemcpyNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemcpyNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemcpyNodeSetParams1D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemcpyNodeSetParamsFromSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemcpyNodeSetParamsToSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemsetNodeGetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphMemsetNodeSetParams,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeFindInClone,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeGetDependencies,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeGetDependentNodes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeGetEnabled,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeGetType,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphNodeSetEnabled,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphReleaseUserObject,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphRemoveDependencies,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphRetainUserObject,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphUpload,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsGLRegisterBuffer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsGLRegisterImage,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsMapResources,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsResourceGetMappedPointer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsSubResourceGetMappedArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsUnmapResources,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphicsUnregisterResource,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostAlloc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostFree,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostGetDevicePointer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostGetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostMalloc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostRegister,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHostUnregister,
ROCPROFILER_HIP_RUNTIME_API_ID_hipImportExternalMemory,
ROCPROFILER_HIP_RUNTIME_API_ID_hipImportExternalSemaphore,
ROCPROFILER_HIP_RUNTIME_API_ID_hipInit,
ROCPROFILER_HIP_RUNTIME_API_ID_hipIpcCloseMemHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipIpcGetEventHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipIpcGetMemHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipIpcOpenEventHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipIpcOpenMemHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipKernelNameRef,
ROCPROFILER_HIP_RUNTIME_API_ID_hipKernelNameRefByPtr,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchByPtr,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchCooperativeKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchCooperativeKernelMultiDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchHostFunc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMalloc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMalloc3D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMalloc3DArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocFromPoolAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocHost,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocManaged,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocMipmappedArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMallocPitch,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemAddressFree,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemAddressReserve,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemAdvise,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemAllocHost,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemAllocPitch,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemExportToShareableHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetAddressRange,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetAllocationGranularity,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetAllocationPropertiesFromHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemGetInfo,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemImportFromShareableHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemMap,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemMapArrayAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolExportPointer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolExportToShareableHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolGetAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolImportFromShareableHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolImportPointer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolSetAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolSetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPoolTrimTo,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPrefetchAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemPtrGetInfo,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemRangeGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemRangeGetAttributes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemRelease,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemRetainAllocationHandle,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemSetAccess,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemUnmap,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DFromArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DFromArrayAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DToArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DToArrayAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy3D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy3DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyAtoH,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyDtoD,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyDtoDAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyDtoH,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyDtoHAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromSymbolAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyHtoA,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyHtoD,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyHtoDAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyParam2D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyParam2DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyPeer,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyPeerAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyToArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyToSymbol,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyToSymbolAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyWithStream,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset2D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset2DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset3D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset3DAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD16,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD16Async,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD32,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD32Async,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD8,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetD8Async,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMipmappedArrayCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMipmappedArrayDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMipmappedArrayGetLevel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleGetFunction,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleGetGlobal,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleGetTexRef,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLaunchCooperativeKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLaunchCooperativeKernelMultiDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLaunchKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLoad,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLoadData,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleLoadDataEx,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessor,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleOccupancyMaxPotentialBlockSize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleOccupancyMaxPotentialBlockSizeWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipModuleUnload,
ROCPROFILER_HIP_RUNTIME_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessor,
ROCPROFILER_HIP_RUNTIME_API_ID_hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipOccupancyMaxPotentialBlockSize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipPeekAtLastError,
ROCPROFILER_HIP_RUNTIME_API_ID_hipPointerGetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipPointerGetAttributes,
ROCPROFILER_HIP_RUNTIME_API_ID_hipPointerSetAttribute,
ROCPROFILER_HIP_RUNTIME_API_ID_hipProfilerStart,
ROCPROFILER_HIP_RUNTIME_API_ID_hipProfilerStop,
ROCPROFILER_HIP_RUNTIME_API_ID_hipRuntimeGetVersion,
ROCPROFILER_HIP_RUNTIME_API_ID_hipSetDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipSetDeviceFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipSetupArgument,
ROCPROFILER_HIP_RUNTIME_API_ID_hipSignalExternalSemaphoresAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamAddCallback,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamAttachMemAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamBeginCapture,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamCreateWithFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamCreateWithPriority,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamDestroy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamEndCapture,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetCaptureInfo,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetCaptureInfo_v2,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetDevice,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetPriority,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamIsCapturing,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamQuery,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamSynchronize,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamUpdateCaptureDependencies,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWaitEvent,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWaitValue32,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWaitValue64,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWriteValue32,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWriteValue64,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexObjectCreate, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexObjectDestroy, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexObjectGetResourceDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexObjectGetResourceViewDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexObjectGetTextureDesc, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetAddress,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetAddressMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetFilterMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetFormat,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetMaxAnisotropy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetMipMappedArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetMipmapFilterMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetMipmapLevelBias,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefGetMipmapLevelClamp,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetAddress,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetAddress2D,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetAddressMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetBorderColor,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetFilterMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetFlags,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetFormat,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetMaxAnisotropy,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetMipmapFilterMode, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetMipmapLevelBias,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetMipmapLevelClamp,
ROCPROFILER_HIP_RUNTIME_API_ID_hipTexRefSetMipmappedArray,
ROCPROFILER_HIP_RUNTIME_API_ID_hipThreadExchangeStreamCaptureMode,
ROCPROFILER_HIP_RUNTIME_API_ID_hipUnbindTexture, ///< deprecated or removed
ROCPROFILER_HIP_RUNTIME_API_ID_hipUserObjectCreate,
ROCPROFILER_HIP_RUNTIME_API_ID_hipUserObjectRelease,
ROCPROFILER_HIP_RUNTIME_API_ID_hipUserObjectRetain,
ROCPROFILER_HIP_RUNTIME_API_ID_hipWaitExternalSemaphoresAsync,
ROCPROFILER_HIP_RUNTIME_API_ID_hipCreateChannelDesc,
ROCPROFILER_HIP_RUNTIME_API_ID_hipExtModuleLaunchKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipHccModuleLaunchKernel,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyToSymbol_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromSymbol_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2D_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DFromArray_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy3D_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemsetAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset2D_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset2DAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset3DAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemset3D_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy3DAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromSymbolAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyToSymbolAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpyFromArray_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DToArray_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DFromArrayAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipMemcpy2DToArrayAsync_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamQuery_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamSynchronize_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetPriority_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamWaitEvent_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetFlags_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamAddCallback_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipEventRecord_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchCooperativeKernel_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchKernel_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGraphLaunch_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamBeginCapture_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamEndCapture_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamIsCapturing_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetCaptureInfo_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipStreamGetCaptureInfo_v2_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipLaunchHostFunc_spt,
ROCPROFILER_HIP_RUNTIME_API_ID_hipGetStreamDeviceId,
// ROCPROFILER_HIP_RUNTIME_API_ID_hipDrvGraphAddMemsetNode,
ROCPROFILER_HIP_RUNTIME_API_ID_LAST,
} rocprofiler_hip_runtime_api_id_t;
@@ -25,8 +25,8 @@
// NOLINTNEXTLINE(performance-enum-size)
typedef enum
{
ROCPROFILER_HIP_API_TABLE_ID_NONE = -1,
ROCPROFILER_HIP_API_TABLE_ID_CompilerApi = 0,
ROCPROFILER_HIP_API_TABLE_ID_RuntimeApi,
ROCPROFILER_HIP_API_TABLE_ID_LAST,
} rocprofiler_hip_table_api_id_t;
ROCPROFILER_HIP_TABLE_ID_NONE = -1,
ROCPROFILER_HIP_TABLE_ID_Compiler = 0,
ROCPROFILER_HIP_TABLE_ID_Runtime,
ROCPROFILER_HIP_TABLE_ID_LAST,
} rocprofiler_hip_table_id_t;
+1 -1
Ver ficheiro
@@ -34,7 +34,7 @@
#include <rocprofiler-sdk/hsa/api_args.h>
#include <rocprofiler-sdk/hsa/api_id.h>
#include <rocprofiler-sdk/hsa/table_api_id.h>
#include <rocprofiler-sdk/hsa/table_id.h>
#include <hsa/hsa.h>
@@ -1,9 +1,10 @@
#
#
# Installation of public HSA headers
# Installation of public HSA headers
#
#
set(ROCPROFILER_HSA_HEADER_FILES api_args.h api_id.h table_api_id.h)
set(ROCPROFILER_HSA_HEADER_FILES amd_ext_api_id.h api_args.h api_id.h core_api_id.h
finalize_ext_api_id.h image_ext_api_id.h table_id.h)
install(
FILES ${ROCPROFILER_HSA_HEADER_FILES}
@@ -0,0 +1,108 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
#include <rocprofiler-sdk/version.h>
/**
* @brief ROCProfiler enumeration of HSA AMD Extended API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HSA_AMD_EXT_API_ID_NONE = -1,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_coherency_get_type,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_coherency_set_type,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_set_profiler_enabled,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_async_copy_enable,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_get_dispatch_time,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_get_async_copy_time,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_convert_tick_to_system_domain,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_async_handler,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_async_function,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_wait_any,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_cu_set_mask,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_get_info,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_iterate_memory_pools,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_allocate,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_free,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy_on_engine,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_copy_engine_status,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_memory_pool_get_info,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agents_allow_access,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_can_migrate,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_migrate,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_lock,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_unlock,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_fill,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_interop_map_buffer,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_interop_unmap_buffer,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_image_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_pointer_info,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_pointer_info_set_userdata,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_attach,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_detach,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_signal_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_signal_attach,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_register_system_event_handler,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_intercept_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_intercept_register,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_set_priority,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy_rect,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_runtime_queue_create_register,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_lock_to_pool,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_register_deallocation_callback,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_deregister_deallocation_callback,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_value_pointer,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_attributes_set,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_attributes_get,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_prefetch_async,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_acquire,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_release,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_set_dest_buffer,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_cu_get_mask,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_portable_export_dmabuf,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_portable_close_dmabuf,
#if HSA_AMD_EXT_API_TABLE_MAJOR_VERSION >= 0x02
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_address_reserve,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_address_free,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_handle_create,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_handle_release,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_map,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_unmap,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_set_access,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_get_access,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_export_shareable_handle,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_import_shareable_handle,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_retain_alloc_handle,
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_get_alloc_properties_from_handle,
# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x01
ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_set_async_scratch_limit,
# endif
#endif
ROCPROFILER_HSA_AMD_EXT_API_ID_LAST,
} rocprofiler_hsa_amd_ext_api_id_t;
@@ -22,11 +22,13 @@
#pragma once
#include <rocprofiler-sdk/version.h>
#include <hsa/hsa.h>
#include <hsa/hsa_api_trace.h>
#include <hsa/hsa_ext_amd.h>
#include <hsa/hsa_ext_finalize.h>
#include <hsa/hsa_ext_image.h>
#include <rocprofiler-sdk/version.h>
typedef union rocprofiler_hsa_api_retval_u
{
@@ -36,6 +38,10 @@ typedef union rocprofiler_hsa_api_retval_u
hsa_status_t hsa_status_t_retval;
} rocprofiler_hsa_api_retval_t;
typedef hsa_status_t (*hsa_ext_program_iterate_modules_cb_t)(hsa_ext_program_t program,
hsa_ext_module_t module,
void* data);
typedef union rocprofiler_hsa_api_args_u
{
// block: CoreApi API
@@ -1034,7 +1040,6 @@ typedef union rocprofiler_hsa_api_args_u
const hsa_pitched_ptr_t* src;
const hsa_dim3_t* src_offset;
const hsa_dim3_t* range;
hsa_dim3_t range__val;
hsa_agent_t copy_agent;
hsa_amd_copy_direction_t dir;
uint32_t num_dep_signals;
@@ -1232,6 +1237,47 @@ typedef union rocprofiler_hsa_api_args_u
size_t image_data_slice_pitch;
hsa_ext_image_t* image;
} hsa_ext_image_create_with_layout;
// finalize ext
struct
{
hsa_machine_model_t machine_model;
hsa_profile_t profile;
hsa_default_float_rounding_mode_t default_float_rounding_mode;
const char* options;
hsa_ext_program_t* program;
} hsa_ext_program_create;
struct
{
hsa_ext_program_t program;
} hsa_ext_program_destroy;
struct
{
hsa_ext_program_t program;
hsa_ext_module_t module;
} hsa_ext_program_add_module;
struct
{
hsa_ext_program_t program;
hsa_ext_program_iterate_modules_cb_t callback;
void* data;
} hsa_ext_program_iterate_modules;
struct
{
hsa_ext_program_t program;
hsa_ext_program_info_t attribute;
void* value;
} hsa_ext_program_get_info;
struct
{
hsa_ext_program_t program;
hsa_isa_t isa;
int32_t call_convention;
hsa_ext_control_directives_t control_directives;
const char* options;
hsa_code_object_type_t code_object_type;
hsa_code_object_t* code_object;
} hsa_ext_program_finalize;
//
#if HSA_AMD_EXT_API_TABLE_MAJOR_VERSION >= 0x02
struct
{
@@ -22,230 +22,7 @@
#pragma once
#include <rocprofiler-sdk/version.h>
/**
* @brief ROCProfiler enumeration of HSA API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HSA_API_ID_NONE = -1,
// block: CoreApi API
ROCPROFILER_HSA_API_ID_hsa_init = 0,
ROCPROFILER_HSA_API_ID_hsa_shut_down,
ROCPROFILER_HSA_API_ID_hsa_system_get_info,
ROCPROFILER_HSA_API_ID_hsa_system_extension_supported,
ROCPROFILER_HSA_API_ID_hsa_system_get_extension_table,
ROCPROFILER_HSA_API_ID_hsa_iterate_agents,
ROCPROFILER_HSA_API_ID_hsa_agent_get_info,
ROCPROFILER_HSA_API_ID_hsa_queue_create,
ROCPROFILER_HSA_API_ID_hsa_soft_queue_create,
ROCPROFILER_HSA_API_ID_hsa_queue_destroy,
ROCPROFILER_HSA_API_ID_hsa_queue_inactivate,
ROCPROFILER_HSA_API_ID_hsa_queue_load_read_index_scacquire,
ROCPROFILER_HSA_API_ID_hsa_queue_load_read_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_load_write_index_scacquire,
ROCPROFILER_HSA_API_ID_hsa_queue_load_write_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_store_write_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_store_write_index_screlease,
ROCPROFILER_HSA_API_ID_hsa_queue_cas_write_index_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_queue_cas_write_index_scacquire,
ROCPROFILER_HSA_API_ID_hsa_queue_cas_write_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_cas_write_index_screlease,
ROCPROFILER_HSA_API_ID_hsa_queue_add_write_index_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_queue_add_write_index_scacquire,
ROCPROFILER_HSA_API_ID_hsa_queue_add_write_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_add_write_index_screlease,
ROCPROFILER_HSA_API_ID_hsa_queue_store_read_index_relaxed,
ROCPROFILER_HSA_API_ID_hsa_queue_store_read_index_screlease,
ROCPROFILER_HSA_API_ID_hsa_agent_iterate_regions,
ROCPROFILER_HSA_API_ID_hsa_region_get_info,
ROCPROFILER_HSA_API_ID_hsa_agent_get_exception_policies,
ROCPROFILER_HSA_API_ID_hsa_agent_extension_supported,
ROCPROFILER_HSA_API_ID_hsa_memory_register,
ROCPROFILER_HSA_API_ID_hsa_memory_deregister,
ROCPROFILER_HSA_API_ID_hsa_memory_allocate,
ROCPROFILER_HSA_API_ID_hsa_memory_free,
ROCPROFILER_HSA_API_ID_hsa_memory_copy,
ROCPROFILER_HSA_API_ID_hsa_memory_assign_agent,
ROCPROFILER_HSA_API_ID_hsa_signal_create,
ROCPROFILER_HSA_API_ID_hsa_signal_destroy,
ROCPROFILER_HSA_API_ID_hsa_signal_load_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_load_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_store_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_store_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_wait_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_wait_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_and_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_and_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_and_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_and_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_or_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_or_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_or_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_or_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_xor_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_xor_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_xor_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_xor_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_exchange_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_exchange_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_exchange_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_exchange_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_add_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_add_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_add_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_add_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_subtract_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_subtract_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_subtract_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_subtract_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_signal_cas_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_cas_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_cas_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_cas_scacq_screl,
ROCPROFILER_HSA_API_ID_hsa_isa_from_name,
ROCPROFILER_HSA_API_ID_hsa_isa_get_info,
ROCPROFILER_HSA_API_ID_hsa_isa_compatible,
ROCPROFILER_HSA_API_ID_hsa_code_object_serialize,
ROCPROFILER_HSA_API_ID_hsa_code_object_deserialize,
ROCPROFILER_HSA_API_ID_hsa_code_object_destroy,
ROCPROFILER_HSA_API_ID_hsa_code_object_get_info,
ROCPROFILER_HSA_API_ID_hsa_code_object_get_symbol,
ROCPROFILER_HSA_API_ID_hsa_code_symbol_get_info,
ROCPROFILER_HSA_API_ID_hsa_code_object_iterate_symbols,
ROCPROFILER_HSA_API_ID_hsa_executable_create,
ROCPROFILER_HSA_API_ID_hsa_executable_destroy,
ROCPROFILER_HSA_API_ID_hsa_executable_load_code_object,
ROCPROFILER_HSA_API_ID_hsa_executable_freeze,
ROCPROFILER_HSA_API_ID_hsa_executable_get_info,
ROCPROFILER_HSA_API_ID_hsa_executable_global_variable_define,
ROCPROFILER_HSA_API_ID_hsa_executable_agent_global_variable_define,
ROCPROFILER_HSA_API_ID_hsa_executable_readonly_variable_define,
ROCPROFILER_HSA_API_ID_hsa_executable_validate,
ROCPROFILER_HSA_API_ID_hsa_executable_get_symbol,
ROCPROFILER_HSA_API_ID_hsa_executable_symbol_get_info,
ROCPROFILER_HSA_API_ID_hsa_executable_iterate_symbols,
ROCPROFILER_HSA_API_ID_hsa_status_string,
ROCPROFILER_HSA_API_ID_hsa_extension_get_name,
ROCPROFILER_HSA_API_ID_hsa_system_major_extension_supported,
ROCPROFILER_HSA_API_ID_hsa_system_get_major_extension_table,
ROCPROFILER_HSA_API_ID_hsa_agent_major_extension_supported,
ROCPROFILER_HSA_API_ID_hsa_cache_get_info,
ROCPROFILER_HSA_API_ID_hsa_agent_iterate_caches,
ROCPROFILER_HSA_API_ID_hsa_signal_silent_store_relaxed,
ROCPROFILER_HSA_API_ID_hsa_signal_silent_store_screlease,
ROCPROFILER_HSA_API_ID_hsa_signal_group_create,
ROCPROFILER_HSA_API_ID_hsa_signal_group_destroy,
ROCPROFILER_HSA_API_ID_hsa_signal_group_wait_any_scacquire,
ROCPROFILER_HSA_API_ID_hsa_signal_group_wait_any_relaxed,
ROCPROFILER_HSA_API_ID_hsa_agent_iterate_isas,
ROCPROFILER_HSA_API_ID_hsa_isa_get_info_alt,
ROCPROFILER_HSA_API_ID_hsa_isa_get_exception_policies,
ROCPROFILER_HSA_API_ID_hsa_isa_get_round_method,
ROCPROFILER_HSA_API_ID_hsa_wavefront_get_info,
ROCPROFILER_HSA_API_ID_hsa_isa_iterate_wavefronts,
ROCPROFILER_HSA_API_ID_hsa_code_object_get_symbol_from_name,
ROCPROFILER_HSA_API_ID_hsa_code_object_reader_create_from_file,
ROCPROFILER_HSA_API_ID_hsa_code_object_reader_create_from_memory,
ROCPROFILER_HSA_API_ID_hsa_code_object_reader_destroy,
ROCPROFILER_HSA_API_ID_hsa_executable_create_alt,
ROCPROFILER_HSA_API_ID_hsa_executable_load_program_code_object,
ROCPROFILER_HSA_API_ID_hsa_executable_load_agent_code_object,
ROCPROFILER_HSA_API_ID_hsa_executable_validate_alt,
ROCPROFILER_HSA_API_ID_hsa_executable_get_symbol_by_name,
ROCPROFILER_HSA_API_ID_hsa_executable_iterate_agent_symbols,
ROCPROFILER_HSA_API_ID_hsa_executable_iterate_program_symbols,
// block: AmdExt API
ROCPROFILER_HSA_API_ID_hsa_amd_coherency_get_type,
ROCPROFILER_HSA_API_ID_hsa_amd_coherency_set_type,
ROCPROFILER_HSA_API_ID_hsa_amd_profiling_set_profiler_enabled,
ROCPROFILER_HSA_API_ID_hsa_amd_profiling_async_copy_enable,
ROCPROFILER_HSA_API_ID_hsa_amd_profiling_get_dispatch_time,
ROCPROFILER_HSA_API_ID_hsa_amd_profiling_get_async_copy_time,
ROCPROFILER_HSA_API_ID_hsa_amd_profiling_convert_tick_to_system_domain,
ROCPROFILER_HSA_API_ID_hsa_amd_signal_async_handler,
ROCPROFILER_HSA_API_ID_hsa_amd_async_function,
ROCPROFILER_HSA_API_ID_hsa_amd_signal_wait_any,
ROCPROFILER_HSA_API_ID_hsa_amd_queue_cu_set_mask,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_pool_get_info,
ROCPROFILER_HSA_API_ID_hsa_amd_agent_iterate_memory_pools,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_pool_allocate,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_pool_free,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_async_copy,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_async_copy_on_engine,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_copy_engine_status,
ROCPROFILER_HSA_API_ID_hsa_amd_agent_memory_pool_get_info,
ROCPROFILER_HSA_API_ID_hsa_amd_agents_allow_access,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_pool_can_migrate,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_migrate,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_lock,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_unlock,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_fill,
ROCPROFILER_HSA_API_ID_hsa_amd_interop_map_buffer,
ROCPROFILER_HSA_API_ID_hsa_amd_interop_unmap_buffer,
ROCPROFILER_HSA_API_ID_hsa_amd_image_create,
ROCPROFILER_HSA_API_ID_hsa_amd_pointer_info,
ROCPROFILER_HSA_API_ID_hsa_amd_pointer_info_set_userdata,
ROCPROFILER_HSA_API_ID_hsa_amd_ipc_memory_create,
ROCPROFILER_HSA_API_ID_hsa_amd_ipc_memory_attach,
ROCPROFILER_HSA_API_ID_hsa_amd_ipc_memory_detach,
ROCPROFILER_HSA_API_ID_hsa_amd_signal_create,
ROCPROFILER_HSA_API_ID_hsa_amd_ipc_signal_create,
ROCPROFILER_HSA_API_ID_hsa_amd_ipc_signal_attach,
ROCPROFILER_HSA_API_ID_hsa_amd_register_system_event_handler,
ROCPROFILER_HSA_API_ID_hsa_amd_queue_intercept_create,
ROCPROFILER_HSA_API_ID_hsa_amd_queue_intercept_register,
ROCPROFILER_HSA_API_ID_hsa_amd_queue_set_priority,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_async_copy_rect,
ROCPROFILER_HSA_API_ID_hsa_amd_runtime_queue_create_register,
ROCPROFILER_HSA_API_ID_hsa_amd_memory_lock_to_pool,
ROCPROFILER_HSA_API_ID_hsa_amd_register_deallocation_callback,
ROCPROFILER_HSA_API_ID_hsa_amd_deregister_deallocation_callback,
ROCPROFILER_HSA_API_ID_hsa_amd_signal_value_pointer,
ROCPROFILER_HSA_API_ID_hsa_amd_svm_attributes_set,
ROCPROFILER_HSA_API_ID_hsa_amd_svm_attributes_get,
ROCPROFILER_HSA_API_ID_hsa_amd_svm_prefetch_async,
ROCPROFILER_HSA_API_ID_hsa_amd_spm_acquire,
ROCPROFILER_HSA_API_ID_hsa_amd_spm_release,
ROCPROFILER_HSA_API_ID_hsa_amd_spm_set_dest_buffer,
ROCPROFILER_HSA_API_ID_hsa_amd_queue_cu_get_mask,
ROCPROFILER_HSA_API_ID_hsa_amd_portable_export_dmabuf,
ROCPROFILER_HSA_API_ID_hsa_amd_portable_close_dmabuf,
// block: ImageExt API
ROCPROFILER_HSA_API_ID_hsa_ext_image_get_capability,
ROCPROFILER_HSA_API_ID_hsa_ext_image_data_get_info,
ROCPROFILER_HSA_API_ID_hsa_ext_image_create,
ROCPROFILER_HSA_API_ID_hsa_ext_image_import,
ROCPROFILER_HSA_API_ID_hsa_ext_image_export,
ROCPROFILER_HSA_API_ID_hsa_ext_image_copy,
ROCPROFILER_HSA_API_ID_hsa_ext_image_clear,
ROCPROFILER_HSA_API_ID_hsa_ext_image_destroy,
ROCPROFILER_HSA_API_ID_hsa_ext_sampler_create,
ROCPROFILER_HSA_API_ID_hsa_ext_sampler_destroy,
ROCPROFILER_HSA_API_ID_hsa_ext_image_get_capability_with_layout,
ROCPROFILER_HSA_API_ID_hsa_ext_image_data_get_info_with_layout,
ROCPROFILER_HSA_API_ID_hsa_ext_image_create_with_layout,
#if HSA_AMD_EXT_API_TABLE_MAJOR_VERSION >= 0x02
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_address_reserve,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_address_free,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_handle_create,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_handle_release,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_map,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_unmap,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_set_access,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_get_access,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_export_shareable_handle,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_import_shareable_handle,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_retain_alloc_handle,
ROCPROFILER_HSA_API_ID_hsa_amd_vmem_get_alloc_properties_from_handle,
# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x01
ROCPROFILER_HSA_API_ID_hsa_amd_agent_set_async_scratch_limit,
# endif
#endif
ROCPROFILER_HSA_API_ID_LAST,
} rocprofiler_hsa_api_id_t;
#include "amd_ext_api_id.h"
#include "core_api_id.h"
#include "finalize_ext_api_id.h"
#include "image_ext_api_id.h"
@@ -0,0 +1,160 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
#include <rocprofiler-sdk/version.h>
/**
* @brief ROCProfiler enumeration of HSA Core API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HSA_CORE_API_ID_NONE = -1,
ROCPROFILER_HSA_CORE_API_ID_hsa_init = 0,
ROCPROFILER_HSA_CORE_API_ID_hsa_shut_down,
ROCPROFILER_HSA_CORE_API_ID_hsa_system_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_system_extension_supported,
ROCPROFILER_HSA_CORE_API_ID_hsa_system_get_extension_table,
ROCPROFILER_HSA_CORE_API_ID_hsa_iterate_agents,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_create,
ROCPROFILER_HSA_CORE_API_ID_hsa_soft_queue_create,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_inactivate,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_load_read_index_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_load_read_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_load_write_index_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_load_write_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_store_write_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_store_write_index_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_cas_write_index_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_cas_write_index_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_cas_write_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_cas_write_index_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_add_write_index_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_add_write_index_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_add_write_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_add_write_index_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_store_read_index_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_queue_store_read_index_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_iterate_regions,
ROCPROFILER_HSA_CORE_API_ID_hsa_region_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_get_exception_policies,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_extension_supported,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_register,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_deregister,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_allocate,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_free,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_copy,
ROCPROFILER_HSA_CORE_API_ID_hsa_memory_assign_agent,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_create,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_load_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_load_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_store_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_store_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_wait_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_wait_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_and_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_and_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_and_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_and_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_or_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_or_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_or_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_or_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_xor_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_xor_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_xor_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_xor_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_exchange_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_exchange_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_exchange_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_exchange_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_add_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_add_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_add_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_add_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_subtract_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_subtract_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_subtract_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_subtract_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_cas_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_cas_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_cas_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_cas_scacq_screl,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_from_name,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_compatible,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_serialize,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_deserialize,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_get_symbol,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_symbol_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_iterate_symbols,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_create,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_load_code_object,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_freeze,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_global_variable_define,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_agent_global_variable_define,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_readonly_variable_define,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_validate,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_get_symbol,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_symbol_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_iterate_symbols,
ROCPROFILER_HSA_CORE_API_ID_hsa_status_string,
ROCPROFILER_HSA_CORE_API_ID_hsa_extension_get_name,
ROCPROFILER_HSA_CORE_API_ID_hsa_system_major_extension_supported,
ROCPROFILER_HSA_CORE_API_ID_hsa_system_get_major_extension_table,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_major_extension_supported,
ROCPROFILER_HSA_CORE_API_ID_hsa_cache_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_iterate_caches,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_silent_store_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_silent_store_screlease,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_group_create,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_group_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_group_wait_any_scacquire,
ROCPROFILER_HSA_CORE_API_ID_hsa_signal_group_wait_any_relaxed,
ROCPROFILER_HSA_CORE_API_ID_hsa_agent_iterate_isas,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_get_info_alt,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_get_exception_policies,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_get_round_method,
ROCPROFILER_HSA_CORE_API_ID_hsa_wavefront_get_info,
ROCPROFILER_HSA_CORE_API_ID_hsa_isa_iterate_wavefronts,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_get_symbol_from_name,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_reader_create_from_file,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_reader_create_from_memory,
ROCPROFILER_HSA_CORE_API_ID_hsa_code_object_reader_destroy,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_create_alt,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_load_program_code_object,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_load_agent_code_object,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_validate_alt,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_get_symbol_by_name,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_iterate_agent_symbols,
ROCPROFILER_HSA_CORE_API_ID_hsa_executable_iterate_program_symbols,
ROCPROFILER_HSA_CORE_API_ID_LAST,
} rocprofiler_hsa_core_api_id_t;
@@ -0,0 +1,40 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
#include <rocprofiler-sdk/version.h>
/**
* @brief ROCProfiler enumeration of HSA Image Extended API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_NONE = -1,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_create = 0,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_destroy,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_add_module,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_iterate_modules,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_get_info,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_hsa_ext_program_finalize,
ROCPROFILER_HSA_FINALIZE_EXT_API_ID_LAST,
} rocprofiler_hsa_finalize_ext_api_id_t;
@@ -0,0 +1,47 @@
// MIT License
//
// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in 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:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// 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
// AUTHORS 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 IN
// THE SOFTWARE.
#pragma once
#include <rocprofiler-sdk/version.h>
/**
* @brief ROCProfiler enumeration of HSA Image Extended API tracing operations
*/
typedef enum // NOLINT(performance-enum-size)
{
ROCPROFILER_HSA_IMAGE_EXT_API_ID_NONE = -1,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_get_capability,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_data_get_info,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_create,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_import,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_export,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_copy,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_clear,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_destroy,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_sampler_create,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_sampler_destroy,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_get_capability_with_layout,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_data_get_info_with_layout,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_hsa_ext_image_create_with_layout,
ROCPROFILER_HSA_IMAGE_EXT_API_ID_LAST,
} rocprofiler_hsa_image_ext_api_id_t;
@@ -25,9 +25,10 @@
// NOLINTNEXTLINE(performance-enum-size)
typedef enum
{
ROCPROFILER_MARKER_API_TABLE_ID_NONE = -1,
ROCPROFILER_MARKER_API_TABLE_ID_RoctxCore = 0,
ROCPROFILER_MARKER_API_TABLE_ID_RoctxControl,
ROCPROFILER_MARKER_API_TABLE_ID_RoctxName,
ROCPROFILER_MARKER_API_TABLE_ID_LAST,
} rocprofiler_marker_table_api_id_t;
ROCPROFILER_HSA_TABLE_ID_NONE = -1,
ROCPROFILER_HSA_TABLE_ID_Core = 0,
ROCPROFILER_HSA_TABLE_ID_AmdExt,
ROCPROFILER_HSA_TABLE_ID_ImageExt,
ROCPROFILER_HSA_TABLE_ID_FinalizeExt,
ROCPROFILER_HSA_TABLE_ID_LAST,
} rocprofiler_hsa_table_id_t;
@@ -24,4 +24,4 @@
#include <rocprofiler-sdk/marker/api_args.h>
#include <rocprofiler-sdk/marker/api_id.h>
#include <rocprofiler-sdk/marker/table_api_id.h>
#include <rocprofiler-sdk/marker/table_id.h>
@@ -3,7 +3,7 @@
# Installation of public HSA headers
#
#
set(ROCPROFILER_MARKER_HEADER_FILES api_args.h api_id.h table_api_id.h)
set(ROCPROFILER_MARKER_HEADER_FILES api_args.h api_id.h table_id.h)
install(
FILES ${ROCPROFILER_MARKER_HEADER_FILES}
@@ -25,9 +25,9 @@
// NOLINTNEXTLINE(performance-enum-size)
typedef enum
{
ROCPROFILER_HSA_API_TABLE_ID_NONE = -1,
ROCPROFILER_HSA_API_TABLE_ID_CoreApi = 0,
ROCPROFILER_HSA_API_TABLE_ID_AmdExt,
ROCPROFILER_HSA_API_TABLE_ID_ImageExt,
ROCPROFILER_HSA_API_TABLE_ID_LAST,
} rocprofiler_hsa_table_api_id_t;
ROCPROFILER_MARKER_TABLE_ID_NONE = -1,
ROCPROFILER_MARKER_TABLE_ID_RoctxCore = 0,
ROCPROFILER_MARKER_TABLE_ID_RoctxControl,
ROCPROFILER_MARKER_TABLE_ID_RoctxName,
ROCPROFILER_MARKER_TABLE_ID_LAST,
} rocprofiler_marker_table_id_t;