Skip to content

Commit 6baba64

Browse files
committed
[SYCL] Revert fix in 84af96b for 9ce7725
It does not fix the name collision
1 parent f525be8 commit 6baba64

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

sycl/include/sycl/__spirv/spirv_vars.hpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,7 @@ __DPCPP_SYCL_EXTERNAL inline uint32_t __spirv_SubgroupLocalInvocationId() {
166166
#endif // defined(__NVPTX__) || defined(__AMDGCN__)
167167

168168
#undef __SPIRV_VAR_QUALIFIERS
169-
#ifdef __spirv
170-
#define __RECOVER_SPIRV_MACRO__ __spirv
171-
#undef __spirv
172-
#endif // __spirv
169+
173170
namespace __spirv {
174171

175172
// Helper function templates to initialize and get vector component from SPIR-V
@@ -209,10 +206,6 @@ __SPIRV_DEFINE_INIT_AND_GET_HELPERS(WorkgroupId)
209206
__SPIRV_DEFINE_INIT_AND_GET_HELPERS(GlobalOffset)
210207

211208
#undef __SPIRV_DEFINE_INIT_AND_GET_HELPERS
212-
#ifdef __RECOVER_SPIRV_MACRO__
213-
#define __spirv __RECOVER_SPIRV_MACRO__
214-
#undef __RECOVER_SPIRV_MACRO__
215-
#endif // __RECOVER_SPIRV_MACRO__
216209

217210
} // namespace __spirv
218211

0 commit comments

Comments
 (0)