Skip to content

Commit 0a41aa2

Browse files
author
Pavel Samolysov
committed
[SYCL] Comment why we cannot use the opencl_generic attribute
1 parent 4402f47 commit 0a41aa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/include/CL/sycl/access/access.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ constexpr bool modeWritesNewData(access::mode m) {
123123
#define __OPENCL_LOCAL_AS__ __attribute__((opencl_local))
124124
#define __OPENCL_CONSTANT_AS__ __attribute__((opencl_constant))
125125
#define __OPENCL_PRIVATE_AS__ __attribute__((opencl_private))
126+
// TODO cannot be defined as __attribute__((opencl_generic)) since clang doesn't
127+
// support the generic address space for SYCL.
126128
#define __OPENCL_GENERIC_AS__
127129
#else
128130
#define __OPENCL_GLOBAL_AS__

0 commit comments

Comments
 (0)