diff --git a/sycl/source/detail/usm/usm_impl.cpp b/sycl/source/detail/usm/usm_impl.cpp index fb32afdd703b4..9fb8bc5d37a46 100644 --- a/sycl/source/detail/usm/usm_impl.cpp +++ b/sycl/source/detail/usm/usm_impl.cpp @@ -162,9 +162,9 @@ void *alignedAlloc(size_t Alignment, size_t Size, const context &Ctxt, *PropsIter++ = PI_MEM_ALLOC_DEVICE_READ_ONLY; } - if (Dev.has_extension("cl_intel_mem_alloc_buffer_location") && - PropList.has_property()) { + if (PropList.has_property() && + Dev.has_extension("cl_intel_mem_alloc_buffer_location")) { *PropsIter++ = PI_MEM_USM_ALLOC_BUFFER_LOCATION; *PropsIter++ = PropList .get_property