Skip to content

Commit 7af3b4c

Browse files
committed
Check for extension support rather than whether the device is an FPGA
1 parent c5d9ae1 commit 7af3b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/usm/usm_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ void *alignedAlloc(size_t Alignment, size_t Size, const context &Ctxt,
130130
// Parse out buffer location property
131131
// Buffer location is only supported on FPGA devices
132132
bool IsBufferLocSupported = true;
133-
if (!Dev.is_accelerator()) {
133+
if (!Dev.has_extension("cl_intel_mem_alloc_buffer_location")) {
134134
IsBufferLocSupported = false;
135135
}
136136
if (PropList.has_property<cl::sycl::ext::intel::experimental::property::

0 commit comments

Comments
 (0)