Skip to content

Commit 1dad8e9

Browse files
author
Pavel Samolysov
committed
[SYCL] Add opencl_generic as a valid address space for __SPIRV_ATOMICS
1 parent 0a41aa2 commit 1dad8e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/include/CL/__spirv/spirv_ops.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ extern SYCL_EXTERNAL TempRetT __spirv_ImageSampleExplicitLod(SampledType,
239239

240240
#define __SPIRV_ATOMICS(macro, Arg) \
241241
macro(__attribute__((opencl_global)), Arg) \
242-
macro(__attribute__((opencl_local)), Arg)
242+
macro(__attribute__((opencl_local)), Arg) \
243+
macro(__attribute__((opencl_generic)), Arg)
243244

244245
__SPIRV_ATOMICS(__SPIRV_ATOMIC_FLOAT, float)
245246
__SPIRV_ATOMICS(__SPIRV_ATOMIC_FLOAT, double)

0 commit comments

Comments
 (0)