rocprofiler-sdk/version.h Source File

rocprofiler-sdk/version.h Source File#

Rocprofiler SDK Developer API: rocprofiler-sdk/version.h Source File
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
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 all
13// 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 THE
21// SOFTWARE.
22
23#pragma once
24
25/**
26 * @def ROCPROFILER_VERSION_MAJOR
27 * @brief The major version of the interface as a macro so it can be used
28 * by the preprocessor.
29 * @addtogroup VERSIONING_GROUP
30 *
31 * @def ROCPROFILER_VERSION_MINOR
32 * @brief The minor version of the interface as a macro so it can be used
33 * by the preprocessor.
34 * @addtogroup VERSIONING_GROUP
35 *
36 * @def ROCPROFILER_VERSION_PATCH
37 * @brief The patch version of the interface as a macro so it can be used
38 * by the preprocessor.
39 * @addtogroup VERSIONING_GROUP
40 *
41 * @def ROCPROFILER_VERSION
42 * @brief Numerically increasing version number encoding major, minor, and patch via
43 computing `((10000 * <MAJOR>) + (100 * <MINOR>) + <PATCH>)`.
44 * @addtogroup VERSIONING_GROUP
45 *
46 * @def ROCPROFILER_SOVERSION
47 * @brief Shared object versioning value whose value is at least `(10000 * <MAJOR>)`.
48 * @addtogroup VERSIONING_GROUP
49 *
50 * @def ROCPROFILER_VERSION_STRING
51 * @brief Version string in form: `<MAJOR>.<MINOR>.<PATCH>`.
52 * @addtogroup VERSIONING_GROUP
53 *
54 * @def ROCPROFILER_GIT_DESCRIBE
55 * @brief String encoding of `git describe --tags` when rocprofiler was built.
56 * @addtogroup VERSIONING_GROUP
57 *
58 * @def ROCPROFILER_GIT_REVISION
59 * @brief String encoding of `git rev-parse HEAD` when rocprofiler was built.
60 * @addtogroup VERSIONING_GROUP
61 *
62 * @def ROCPROFILER_LIBRARY_ARCH
63 * @brief Architecture triplet of rocprofiler build.
64 * @addtogroup VERSIONING_GROUP
65 *
66 * @def ROCPROFILER_SYSTEM_NAME
67 * @brief Target operating system for rocprofiler build, e.g. Linux.
68 * @addtogroup VERSIONING_GROUP
69 *
70 * @def ROCPROFILER_SYSTEM_PROCESSOR
71 * @brief Target architecture for rocprofiler build.
72 * @addtogroup VERSIONING_GROUP
73 *
74 * @def ROCPROFILER_SYSTEM_VERSION
75 * @brief Version of the operating system which built rocprofiler
76 * @addtogroup VERSIONING_GROUP
77 *
78 * @def ROCPROFILER_COMPILER_ID
79 * @brief C++ compiler identifier which built rocprofiler, e.g., GNU
80 * @addtogroup VERSIONING_GROUP
81 *
82 * @def ROCPROFILER_COMPILER_VERSION
83 * @brief C++ compiler version which built rocprofiler
84 * @addtogroup VERSIONING_GROUP
85 */
86
87// clang-format off
88#define ROCPROFILER_VERSION_MAJOR
89#define ROCPROFILER_VERSION_MINOR
90#define ROCPROFILER_VERSION_PATCH
91#define ROCPROFILER_SOVERSION (10000 * )
92#define ROCPROFILER_VERSION_STRING ""
93#define ROCPROFILER_GIT_DESCRIBE ""
94#define ROCPROFILER_GIT_REVISION ""
95
96// system info during compilation
97#define ROCPROFILER_LIBRARY_ARCH "x86_64-linux-gnu"
98#define ROCPROFILER_SYSTEM_NAME "Linux"
99#define ROCPROFILER_SYSTEM_PROCESSOR "x86_64"
100#define ROCPROFILER_SYSTEM_VERSION "5.19.0-1028-aws"
101
102// compiler information
103#define ROCPROFILER_COMPILER_ID "GNU"
104#define ROCPROFILER_COMPILER_VERSION "11.4.0"
105
106#define ROCPROFILER_HSA_RUNTIME_VERSION_MAJOR
107#define ROCPROFILER_HSA_RUNTIME_VERSION_MINOR
108
109/* #undef ROCPROFILER_HSA_API_TABLE_MAJOR_VERSION */
110/* #undef ROCPROFILER_HSA_CORE_API_TABLE_MAJOR_VERSION */
111/* #undef ROCPROFILER_HSA_AMD_EXT_API_TABLE_MAJOR_VERSION */
112/* #undef ROCPROFILER_HSA_FINALIZER_API_TABLE_MAJOR_VERSION */
113/* #undef ROCPROFILER_HSA_IMAGE_API_TABLE_MAJOR_VERSION */
114/* #undef ROCPROFILER_HSA_AQLPROFILE_API_TABLE_MAJOR_VERSION */
115/* #undef ROCPROFILER_HSA_TOOLS_API_TABLE_MAJOR_VERSION */
116
117/* #undef ROCPROFILER_HSA_API_TABLE_STEP_VERSION */
118/* #undef ROCPROFILER_HSA_CORE_API_TABLE_STEP_VERSION */
119/* #undef ROCPROFILER_HSA_AMD_EXT_API_TABLE_STEP_VERSION */
120/* #undef ROCPROFILER_HSA_FINALIZER_API_TABLE_STEP_VERSION */
121/* #undef ROCPROFILER_HSA_IMAGE_API_TABLE_STEP_VERSION */
122/* #undef ROCPROFILER_HSA_AQLPROFILE_API_TABLE_STEP_VERSION */
123/* #undef ROCPROFILER_HSA_TOOLS_API_TABLE_STEP_VERSION */
124// clang-format on
125
126#define ROCPROFILER_VERSION \
127 ((10000 * ROCPROFILER_VERSION_MAJOR) + (100 * ROCPROFILER_VERSION_MINOR) + \
128 ROCPROFILER_VERSION_PATCH)
129
130// latest hsa-runtime version supported
131#define ROCPROFILER_HSA_RUNTIME_VERSION \
132 ((10000 * ROCPROFILER_HSA_RUNTIME_VERSION_MAJOR) + \
133 (100 * ROCPROFILER_HSA_RUNTIME_VERSION_MINOR))