rocprofiler-sdk/rocdecode/details/rocdecode_version.h Source File

rocprofiler-sdk/rocdecode/details/rocdecode_version.h Source File#

Rocprofiler SDK Developer API: rocprofiler-sdk/rocdecode/details/rocdecode_version.h Source File
Rocprofiler SDK Developer API 0.6.0
ROCm Profiling API and tools
rocdecode_version.h
Go to the documentation of this file.
1/*
2Copyright (c) 2024 - 2024 Advanced Micro Devices, Inc. All rights reserved.
3
4Permission is hereby granted, free of charge, to any person obtaining a copy
5of this software and associated documentation files (the "Software"), to deal
6in the Software without restriction, including without limitation the rights
7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the Software is
9furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20THE SOFTWARE.
21*/
22
23#ifndef ROCDECODE_VERSION_H
24#define ROCDECODE_VERSION_H
25
26/*!
27 * \file
28 * \brief rocDecode version
29 * \defgroup group_rocdecode_version rocDecode Version
30 * \brief rocDecode version
31 */
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36/* NOTE: Match version with CMakeLists.txt */
37#define ROCDECODE_MAJOR_VERSION 0
38#define ROCDECODE_MINOR_VERSION 10
39#define ROCDECODE_MICRO_VERSION 0
40
41/**
42 * ROCDECODE_CHECK_VERSION:
43 * @major: major version, like 1 in 1.2.3
44 * @minor: minor version, like 2 in 1.2.3
45 * @micro: micro version, like 3 in 1.2.3
46 *
47 * Evaluates to %TRUE if the version of rocDecode is greater than
48 * @major, @minor and @micro
49 */
50#define ROCDECODE_CHECK_VERSION(major, minor, micro) \
51 (ROCDECODE_MAJOR_VERSION > (major) || \
52 (ROCDECODE_MAJOR_VERSION == (major) && ROCDECODE_MINOR_VERSION > (minor)) || \
53 (ROCDECODE_MAJOR_VERSION == (major) && ROCDECODE_MINOR_VERSION == (minor) && \
54 ROCDECODE_MICRO_VERSION >= (micro)))
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif