Skip to content

Commit 6a92998

Browse files
Update sycl/include/CL/sycl/detail/pi.h
Co-authored-by: smaslov-intel <[email protected]>
1 parent a2ba928 commit 6a92998

File tree

1 file changed

+2
-0
lines changed
  • sycl/include/CL/sycl/detail

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
#define _PI_STRING_HELPER(a) #a
5454
#define _PI_CONCAT(a, b) _PI_STRING_HELPER(a.b)
5555
#define _PI_TRIPLE_CONCAT(a, b, c) _PI_STRING_HELPER(a.b.c)
56+
// This is the macro that plugins should all use to define their version
57+
#define _PI_PLUGIN_VERSION_STRING(PluginVersion) _PI_TRIPLE_CONCAT(_PI_H_VERSION_MAJOR, _PI_H_VERSION_MINOR, (PluginVersion))
5658

5759
#define _PI_H_VERSION_STRING \
5860
_PI_CONCAT(_PI_H_VERSION_MAJOR, _PI_H_VERSION_MINOR)

0 commit comments

Comments
 (0)