Skip to content

Commit c02c2d2

Browse files
authored
Change ONETBB_SPEC_VERSION macro to align with the latest oneAPI spec (#1618)
1 parent 3c85ad7 commit c02c2d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

include/oneapi/tbb/version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
__TBB_VERSION_SUFFIX
4343

4444
// OneAPI oneTBB specification version
45-
#define ONETBB_SPEC_VERSION "1.0"
45+
#define ONETBB_SPEC_VERSION 104
4646
// Full interface version
4747
#define TBB_INTERFACE_VERSION 12150
4848
// Major interface version
@@ -62,7 +62,7 @@
6262
//TBB_REVAMP_TODO: consider enabling version_string.ver generation
6363
//TBB_REVAMP_TODO: #include "version_string.ver"
6464

65-
#define __TBB_ONETBB_SPEC_VERSION(N) #N ": SPECIFICATION VERSION\t" ONETBB_SPEC_VERSION TBB_ENDL
65+
#define __TBB_ONETBB_SPEC_VERSION(N) #N ": SPECIFICATION VERSION\t" __TBB_STRING(ONETBB_SPEC_VERSION) TBB_ENDL
6666
#define __TBB_VERSION_NUMBER(N) #N ": VERSION\t\t" TBB_VERSION_STRING TBB_ENDL
6767
#define __TBB_INTERFACE_VERSION_NUMBER(N) #N ": INTERFACE VERSION\t" __TBB_STRING(TBB_INTERFACE_VERSION) TBB_ENDL
6868

test/conformance/conformance_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2020-2023 Intel Corporation
2+
Copyright (c) 2020-2025 Intel Corporation
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -25,8 +25,8 @@
2525
//! Testing the match of compile-time oneTBB specification version
2626
//! \brief \ref requirement \ref interface
2727
TEST_CASE("Test specification version") {
28-
const char* expected = "1.0";
29-
REQUIRE_MESSAGE(std::strcmp(expected, ONETBB_SPEC_VERSION) == 0,
28+
int expected = 104;
29+
REQUIRE_MESSAGE(ONETBB_SPEC_VERSION == expected,
3030
"Expected and actual specification versions do not match.");
3131
}
3232

0 commit comments

Comments
 (0)