-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathgpa_version.h
42 lines (32 loc) · 2.21 KB
/
gpa_version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//==============================================================================
// Copyright (c) 2016-2024 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Macros used for defining GPUPerfAPI version.
//==============================================================================
// Note: This file is auto-generated using gpa_version cmake module.
#ifndef GPU_PERF_API_COMMMON_GPA_VERSION_H_
#define GPU_PERF_API_COMMMON_GPA_VERSION_H_
// Make sure to increment GPA_FUNCTION_TABLE_MAJOR_VERSION_NUMBER anytime GPA_MAJOR_VERSION is incremented
#define GPA_MAJOR_VERSION 3 ///< Macro for GPA major version.
#define GPA_MINOR_VERSION 17 ///< Macro for GPA minor version.
#define GPA_UPDATE_VERSION 0 ///< Macro for GPA update version.
/// Macro for GPA build number
#define GPA_BUILD_NUMBER 0
#define GPA_STR_VALUE(s) #s ///< Macro to stringify a value.
#ifdef WIN32
#define GPA_STR_EMPTY() ///< Macro to stringify an empty value.
#define GPA_GET_MACRO(_0, _1, MACRO, ...) MACRO ///< Macro to select between GPA_STR_VALUE and GPA_STR_EMPTY.
#define GPA_VERSION_STRING(s) GPA_GET_MACRO(_0, ##__VA_ARGS__, GPA_STR_VALUE, GPA_STR_EMPTY)(__VA_ARGS__) ///< Macro to stringify a version value.
#else
#define GPA_VERSION_STRING(s) GPA_STR_VALUE(s) ///< Macro to stringify a version value
#endif // !WIN32
#define GPA_MAJOR_VERSION_STR GPA_VERSION_STRING(GPA_MAJOR_VERSION) ///< Macro for major version string.
#define GPA_MINOR_VERSION_STR GPA_VERSION_STRING(GPA_MINOR_VERSION) ///< Macro for minor version string.
#define GPA_BUILD_NUMBER_STR GPA_VERSION_STRING(GPA_BUILD_NUMBER) ///< Macro for build number string.
#define GPA_UPDATE_VERSION_STR GPA_VERSION_STRING(GPA_UPDATE_VERSION) ///< Macro for update version string.
#define AMDT_PROJECT_SUFFIX_STR GPA_VERSION_STRING(AMDT_PROJECT_SUFFIX) ///< Macro for project suffix string.
#define GPA_COPYRIGHT_CURRENT_YEAR 2024 ///< Macro for current year.
#define GPA_COPYRIGHT_STR \
"Copyright (c) 2010-" GPA_VERSION_STRING(GPA_COPYRIGHT_CURRENT_YEAR) " Advanced Micro Devices, Inc. All rights reserved." ///< Macro for copyright string.
#endif // GPU_PERF_API_COMMMON_GPA_VERSION_H_