Skip to content

Commit f084720

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents a9ac167 + 4658b61 commit f084720

File tree

6 files changed

+624
-323
lines changed

6 files changed

+624
-323
lines changed

libdevice/device.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717

1818
#ifdef __SPIR__
1919
#ifdef __SYCL_DEVICE_ONLY__
20-
#define DEVICE_EXTERNAL SYCL_EXTERNAL __attribute__((weak))
20+
#define DEVICE_EXTERNAL \
21+
SYCL_EXTERNAL __attribute__((weak)) __attribute__((always_inline))
2122
#else // __SYCL_DEVICE_ONLY__
2223
#define DEVICE_EXTERNAL __attribute__((weak))
2324
#endif // __SYCL_DEVICE_ONLY__

sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ __builtin_invoke_simd(SimdCallee target, const void *obj, SpmdArgs... args)
4646
#else
4747
{
4848
// __builtin_invoke_simd is not supported on the host device yet
49-
throw sycl::feature_not_supported();
49+
throw sycl::exception(sycl::errc::feature_not_supported,
50+
"__builtin_invoke_simd is not supported on host");
5051
}
5152
#endif // __SYCL_DEVICE_ONLY__
5253

@@ -59,7 +60,8 @@ SYCL_EXTERNAL __regcall SpmdRet __builtin_invoke_simd(SimdCallee target,
5960
#else
6061
{
6162
// __builtin_invoke_simd is not supported on the host device yet
62-
throw sycl::feature_not_supported();
63+
throw sycl::exception(sycl::errc::feature_not_supported,
64+
"__builtin_invoke_simd is not supported on host");
6365
}
6466
#endif // __SYCL_DEVICE_ONLY__
6567

0 commit comments

Comments
 (0)