Skip to content

Commit 6b9b16c

Browse files
[NFC][ESIMD] Remove one of the uses on __SYCL_EXPLICIT_SIMD__ (#3242)
This patch is a part of the efforts for allowing ESIMD and regular SYCL kernels to coexist in the same translation unit and in the same program. In ESIMD kernels, calls to __spirv_ functions are lowered into GenX intrinsic. Because of that, it's OK to have definitions instead of declarations for those functions. Unused definitions of __spirv_ functions will be DCE'ed anyway, so no impact on functionality.
1 parent 8e441d4 commit 6b9b16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/__spirv/spirv_vars.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#define __SPIRV_VAR_QUALIFIERS extern "C" const
1717

18-
#if defined(__SYCL_NVPTX__) || defined(__SYCL_EXPLICIT_SIMD__)
18+
#if defined(__SYCL_NVPTX__)
1919

2020
SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_x();
2121
SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_y();

0 commit comments

Comments
 (0)