Skip to content

Commit 601bc7d

Browse files
author
Hugh Delaney
committed
Moving triple concat to pi.h and adding PluginVersion to SYCL_PI_TRACE=-1 string
1 parent 86ce4db commit 601bc7d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/include/CL/sycl/detail/pi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252

5353
#define _PI_STRING_HELPER(a) #a
5454
#define _PI_CONCAT(a, b) _PI_STRING_HELPER(a.b)
55+
#define _PI_TRIPLE_CONCAT(a, b, c) _PI_STRING_HELPER(a.b.c)
56+
5557
#define _PI_H_VERSION_STRING \
5658
_PI_CONCAT(_PI_H_VERSION_MAJOR, _PI_H_VERSION_MINOR)
5759

sycl/plugins/cuda/pi_cuda.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
#define _PI_CUDA_PLUGIN_VERSION 1
2222

23-
#define _PI_TRIPLE_CONCAT(a, b, c) _PI_STRING_HELPER(a.b.c)
24-
2523
#define _PI_CUDA_PLUGIN_VERSION_STRING \
2624
_PI_TRIPLE_CONCAT(_PI_H_VERSION_MAJOR, _PI_H_VERSION_MINOR, \
2725
_PI_CUDA_PLUGIN_VERSION)

sycl/source/detail/pi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static void initializePlugins(std::vector<plugin> &Plugins) {
451451
if (trace(TraceLevel::PI_TRACE_BASIC))
452452
std::cerr << "SYCL_PI_TRACE[basic]: "
453453
<< "Plugin found and successfully loaded: "
454-
<< PluginNames[I].first << " ["
454+
<< PluginNames[I].first << " [ PluginVersion: "
455455
<< Plugins[I].getPiPlugin().PluginVersion << "]" << std::endl;
456456
}
457457

0 commit comments

Comments
 (0)