From 19938b7b4e8e4faf462bb92d5e59b1342cb9ef91 Mon Sep 17 00:00:00 2001 From: Denis Bakhvalov Date: Sun, 21 Feb 2021 20:11:07 -0800 Subject: [PATCH] [NFC][ESIMD] Remove one of the uses on __SYCL_EXPLICIT_SIMD__ 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. --- sycl/include/CL/__spirv/spirv_vars.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/include/CL/__spirv/spirv_vars.hpp b/sycl/include/CL/__spirv/spirv_vars.hpp index 53315cd9f72eb..bbc6f75ddf87b 100644 --- a/sycl/include/CL/__spirv/spirv_vars.hpp +++ b/sycl/include/CL/__spirv/spirv_vars.hpp @@ -15,7 +15,7 @@ #define __SPIRV_VAR_QUALIFIERS extern "C" const -#if defined(__SYCL_NVPTX__) || defined(__SYCL_EXPLICIT_SIMD__) +#if defined(__SYCL_NVPTX__) SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_x(); SYCL_EXTERNAL size_t __spirv_GlobalInvocationId_y();