rocprofiler-sdk/hsa/amd_ext_api_id.h Source File

rocprofiler-sdk/hsa/amd_ext_api_id.h Source File#

Rocprofiler SDK Developer API: rocprofiler-sdk/hsa/amd_ext_api_id.h Source File
Rocprofiler SDK Developer API 0.5.0
ROCm Profiling API and tools
amd_ext_api_id.h
Go to the documentation of this file.
1// MIT License
2//
3// Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21// THE SOFTWARE.
22
23#pragma once
24
27
28/**
29 * @brief ROCProfiler enumeration of HSA AMD Extended API tracing operations
30 */
31typedef enum // NOLINT(performance-enum-size)
32{
89
90#if HSA_AMD_EXT_API_TABLE_MAJOR_VERSION >= 0x02
91 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_address_reserve,
92 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_address_free,
93 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_handle_create,
94 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_handle_release,
95 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_map,
96 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_unmap,
97 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_set_access,
98 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_get_access,
99 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_export_shareable_handle,
100 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_import_shareable_handle,
101 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_retain_alloc_handle,
102 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_get_alloc_properties_from_handle,
103# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x01
104 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_set_async_scratch_limit,
105# endif
106# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x02
107 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_get_info,
108# endif
109# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x03
110 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_vmem_address_reserve_align,
111# endif
112# if HSA_AMD_EXT_API_TABLE_STEP_VERSION >= 0x04
113 ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_enable_logging,
114# endif
115#endif
116
rocprofiler_hsa_amd_ext_api_id_t
ROCProfiler enumeration of HSA AMD Extended API tracing operations.
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_lock
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_pointer_info
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_intercept_register
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agents_allow_access
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_cu_get_mask
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_coherency_set_type
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_release
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_iterate_memory_pools
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_signal_create
@ ROCPROFILER_HSA_AMD_EXT_API_ID_NONE
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy_on_engine
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_create
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_can_migrate
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_detach
@ ROCPROFILER_HSA_AMD_EXT_API_ID_LAST
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_async_copy_enable
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_set_priority
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_async_handler
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_migrate
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_attributes_get
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_agent_memory_pool_get_info
@ 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_coherency_get_type
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_intercept_create
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_fill
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_image_create
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_get_dispatch_time
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_queue_cu_set_mask
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_unlock
@ 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_deregister_deallocation_callback
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_get_async_copy_time
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_interop_unmap_buffer
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_create
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_pool_get_info
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_value_pointer
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_prefetch_async
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_register_deallocation_callback
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_async_copy_rect
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_set_dest_buffer
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_memory_attach
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_svm_attributes_set
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_async_function
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_convert_tick_to_system_domain
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_signal_wait_any
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_spm_acquire
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_register_system_event_handler
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_interop_map_buffer
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_portable_export_dmabuf
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_memory_copy_engine_status
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_ipc_signal_attach
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_profiling_set_profiler_enabled
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_pointer_info_set_userdata
@ ROCPROFILER_HSA_AMD_EXT_API_ID_hsa_amd_portable_close_dmabuf