From e1f9a38978cbe225606f9341fbeb12bd4f4cdb80 Mon Sep 17 00:00:00 2001 From: Matthew Michel Date: Fri, 10 Jan 2025 15:15:20 -0600 Subject: [PATCH] Update use of throw Signed-off-by: Matthew Michel --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h index 1dc37a2370..d87c39cb54 100644 --- a/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h +++ b/include/oneapi/dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h @@ -855,10 +855,10 @@ struct __bypass_sycl_kernel_not_supported // compiler, then compare the value of the error code. Otherwise, assume the implementation is spec compliant. #ifdef _ONEDPL_LIBSYCL_VERSION // Detects either icpx or the open-source intel/llvm compiler if (__e.code().value() != 7) - throw __e; + throw; #else // Generic SYCL compiler. Assume it is spec compliant. if (__e.code() != sycl::errc::kernel_not_supported) - throw __e; + throw; #endif } };