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