Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 6fd5ca7

Browse files
Skip if device doesn't support usm_host_allocations
1 parent 1e1d880 commit 6fd5ca7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SYCL/USM/allocator_rebind.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ int main() {
6060
queue q;
6161
auto dev = q.get_device();
6262
auto ctx = q.get_context();
63+
64+
if (!dev.get_info<info::device::usm_host_allocations>())
65+
return 0;
66+
6367
{
6468
// Test default value of Alignment template parameter.
6569
usm_allocator<Aligned256, usm::alloc::host> alloc(ctx, dev);

0 commit comments

Comments
 (0)