Skip to content

Commit 730168a

Browse files
committed
Fix LIT tests for CUDA
Signed-off-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>
1 parent d7b4d48 commit 730168a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sycl/include/CL/__spirv/spirv_vars.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ namespace __spirv {
143143
// built-in variables
144144
#define __SPIRV_DEFINE_INIT_AND_GET_HELPERS(POSTFIX) \
145145
template <int ID> static size_t get##POSTFIX(); \
146-
template <> size_t get##POSTFIX<0>() { return __spirv_BuiltIn##POSTFIX.x; } \
147-
template <> size_t get##POSTFIX<1>() { return __spirv_BuiltIn##POSTFIX.y; } \
148-
template <> size_t get##POSTFIX<2>() { return __spirv_BuiltIn##POSTFIX.z; } \
146+
template <> size_t get##POSTFIX<0>() { return __spirv_##POSTFIX##_x(); } \
147+
template <> size_t get##POSTFIX<1>() { return __spirv_##POSTFIX##_y(); } \
148+
template <> size_t get##POSTFIX<2>() { return __spirv_##POSTFIX##_z(); } \
149149
\
150150
template <int Dim, class DstT> struct InitSizesST##POSTFIX; \
151151
\

0 commit comments

Comments
 (0)