We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f43cee commit 88784b3Copy full SHA for 88784b3
sycl/include/CL/__spirv/spirv_vars.hpp
@@ -20,7 +20,7 @@ extern "C" const __attribute__((opencl_constant)) size_t_vec __spirv_BuiltInWork
20
extern "C" const __attribute__((opencl_constant)) size_t_vec __spirv_BuiltInGlobalOffset;
21
22
#define DEFINE_INT_ID_TO_XYZ_CONVERTER(POSTFIX) \
23
- template <int ID> static size_t get##POSTFIX(); \
+ template <int ID> static inline size_t get##POSTFIX(); \
24
template <> size_t get##POSTFIX<0>() { return __spirv_BuiltIn##POSTFIX.x; } \
25
template <> size_t get##POSTFIX<1>() { return __spirv_BuiltIn##POSTFIX.y; } \
26
template <> size_t get##POSTFIX<2>() { return __spirv_BuiltIn##POSTFIX.z; }
0 commit comments