Skip to content

[SYCL] Replace deprecated sycl::feature_not_supported in invoke_simd.hpp #5976

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2022
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