From 4039b3e4cefb6ae1af4882d4cacc6b820df420bb Mon Sep 17 00:00:00 2001 From: Konstantin S Bobrovsky Date: Wed, 6 Apr 2022 15:26:54 -0700 Subject: [PATCH] [SYCL] Replace deprecated sycl::feature_not_supported in invoke_simd.hpp Signed-off-by: Konstantin S Bobrovsky --- sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp b/sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp index 8db0e8c61ef59..5b050836d5c5a 100644 --- a/sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp +++ b/sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp @@ -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__ @@ -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__