Skip to content

Commit

Permalink
Simplify __use_USM_allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan committed Apr 12, 2024
1 parent 8ca4636 commit fdaba56
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdaba56

Please sign in to comment.