Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ __builtin_invoke_simd(SimdCallee target, const void *obj, SpmdArgs... args)
#else
{
// __builtin_invoke_simd is not supported on the host device yet
throw sycl::feature_not_supported();
throw sycl::exception(sycl::errc::feature_not_supported,
"__builtin_invoke_simd is not supported on host");
}
#endif // __SYCL_DEVICE_ONLY__

Expand All @@ -59,7 +60,8 @@ SYCL_EXTERNAL __regcall SpmdRet __builtin_invoke_simd(SimdCallee target,
#else
{
// __builtin_invoke_simd is not supported on the host device yet
throw sycl::feature_not_supported();
throw sycl::exception(sycl::errc::feature_not_supported,
"__builtin_invoke_simd is not supported on host");
}
#endif // __SYCL_DEVICE_ONLY__

Expand Down