Skip to content

Commit 50f56d6

Browse files
Use clang spelling instead of GNU spelling to fix compilation
error when using custom host compiler 'cl' Signed-off-by: Elizabeth Andrews <[email protected]>
1 parent ca2c4d4 commit 50f56d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ class __SYCL_EXPORT handler {
10621062
}
10631063

10641064
#ifdef SYCL_LANGUAGE_VERSION
1065-
#define __SYCL_KERNEL_ATTR__ __attribute__((sycl_kernel))
1065+
#define __SYCL_KERNEL_ATTR__ [[clang::sycl_kernel]]
10661066
#else
10671067
#define __SYCL_KERNEL_ATTR__
10681068
#endif

0 commit comments

Comments
 (0)