rocprofiler-sdk/hsa/api_trace_version.h Source File

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

Rocprofiler SDK Developer API: rocprofiler-sdk/hsa/api_trace_version.h Source File
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
api_trace_version.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
26
27#if defined(__cplusplus)
28# include <hsa/hsa_api_trace.h> // safe to include from C++
29#elif defined(__has_include)
30# if __has_include(<hsa/hsa_api_trace_version.h>)
31# include <hsa/hsa_api_trace_version.h>
32# endif
33#endif
34
35#ifndef HSA_API_TABLE_MAJOR_VERSION
36# ifdef ROCPROFILER_HSA_API_TABLE_MAJOR_VERSION
37# define HSA_API_TABLE_MAJOR_VERSION ROCPROFILER_HSA_API_TABLE_MAJOR_VERSION
38# endif
39#endif
40
41#ifndef HSA_CORE_API_TABLE_MAJOR_VERSION
42# ifdef ROCPROFILER_HSA_CORE_API_TABLE_MAJOR_VERSION
43# define HSA_CORE_API_TABLE_MAJOR_VERSION ROCPROFILER_HSA_CORE_API_TABLE_MAJOR_VERSION
44# endif
45#endif
46
47#ifndef HSA_AMD_EXT_API_TABLE_MAJOR_VERSION
48# ifdef ROCPROFILER_HSA_AMD_EXT_API_TABLE_MAJOR_VERSION
49# define HSA_AMD_EXT_API_TABLE_MAJOR_VERSION ROCPROFILER_HSA_AMD_EXT_API_TABLE_MAJOR_VERSION
50# endif
51#endif
52
53#ifndef HSA_FINALIZER_API_TABLE_MAJOR_VERSION
54# ifdef ROCPROFILER_HSA_FINALIZER_API_TABLE_MAJOR_VERSION
55# define HSA_FINALIZER_API_TABLE_MAJOR_VERSION \
56 ROCPROFILER_HSA_FINALIZER_API_TABLE_MAJOR_VERSION
57# endif
58#endif
59
60#ifndef HSA_IMAGE_API_TABLE_MAJOR_VERSION
61# ifdef ROCPROFILER_HSA_IMAGE_API_TABLE_MAJOR_VERSION
62# define HSA_IMAGE_API_TABLE_MAJOR_VERSION ROCPROFILER_HSA_IMAGE_API_TABLE_MAJOR_VERSION
63# endif
64#endif
65
66#ifndef HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION
67# ifdef ROCPROFILER_HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION
68# define HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION \
69 ROCPROFILER_HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION
70# endif
71#endif
72
73#ifndef HSA_TOOLS_API_TABLE_MAJOR_VERSION
74# ifdef ROCPROFILER_HSA_TOOLS_API_TABLE_MAJOR_VERSION
75# define HSA_TOOLS_API_TABLE_MAJOR_VERSION ROCPROFILER_HSA_TOOLS_API_TABLE_MAJOR_VERSION
76# endif
77#endif
78
79#ifndef HSA_API_TABLE_STEP_VERSION
80# ifdef ROCPROFILER_HSA_API_TABLE_STEP_VERSION
81# define HSA_API_TABLE_STEP_VERSION ROCPROFILER_HSA_API_TABLE_STEP_VERSION
82# endif
83#endif
84
85#ifndef HSA_CORE_API_TABLE_STEP_VERSION
86# ifdef ROCPROFILER_HSA_CORE_API_TABLE_STEP_VERSION
87# define HSA_CORE_API_TABLE_STEP_VERSION ROCPROFILER_HSA_CORE_API_TABLE_STEP_VERSION
88# endif
89#endif
90
91#ifndef HSA_AMD_EXT_API_TABLE_STEP_VERSION
92# ifdef ROCPROFILER_HSA_AMD_EXT_API_TABLE_STEP_VERSION
93# define HSA_AMD_EXT_API_TABLE_STEP_VERSION ROCPROFILER_HSA_AMD_EXT_API_TABLE_STEP_VERSION
94# endif
95#endif
96
97#ifndef HSA_FINALIZER_API_TABLE_STEP_VERSION
98# ifdef ROCPROFILER_HSA_FINALIZER_API_TABLE_STEP_VERSION
99# define HSA_FINALIZER_API_TABLE_STEP_VERSION \
100 ROCPROFILER_HSA_FINALIZER_API_TABLE_STEP_VERSION
101# endif
102#endif
103
104#ifndef HSA_IMAGE_API_TABLE_STEP_VERSION
105# ifdef ROCPROFILER_HSA_IMAGE_API_TABLE_STEP_VERSION
106# define HSA_IMAGE_API_TABLE_STEP_VERSION ROCPROFILER_HSA_IMAGE_API_TABLE_STEP_VERSION
107# endif
108#endif
109
110#ifndef HSA_AQLPROFILE_API_TABLE_STEP_VERSION
111# ifdef ROCPROFILER_HSA_AQLPROFILE_API_TABLE_STEP_VERSION
112# define HSA_AQLPROFILE_API_TABLE_STEP_VERSION \
113 ROCPROFILER_HSA_AQLPROFILE_API_TABLE_STEP_VERSION
114# endif
115#endif
116
117#ifndef HSA_TOOLS_API_TABLE_STEP_VERSION
118# ifdef ROCPROFILER_HSA_TOOLS_API_TABLE_STEP_VERSION
119# define HSA_TOOLS_API_TABLE_STEP_VERSION ROCPROFILER_HSA_TOOLS_API_TABLE_STEP_VERSION
120# endif
121#endif