From fdaba562d1ac03a7816c2e16449f87a268f00c7b Mon Sep 17 00:00:00 2001 From: Aidan Date: Fri, 12 Apr 2024 14:35:39 +0100 Subject: [PATCH] Simplify __use_USM_allocations --- .../dpl/pstl/hetero/dpcpp/parallel_backend_sycl_utils.h | 5 +---- 1 file changed, 1 insertion(+), 4 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 437b20a2992..324e53acc55 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 @@ -544,10 +544,7 @@ struct __result_and_scratch_storage __use_USM_allocations(sycl::queue __queue) { #if _ONEDPL_SYCL_USM_HOST_PRESENT - auto __device = __queue.get_device(); - if (!__device.has(sycl::aspect::usm_device_allocations)) - return false; - return true; + return __queue.get_device().has(sycl::aspect::usm_device_allocations); #else return false; #endif