Skip to content

Commit 4658b61

Browse files
authored
[SYCL] Replace deprecated sycl::feature_not_supported in invoke_simd.hpp (#5976)
Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent c6313bd commit 4658b61

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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)