Skip to content

Commit 5b5ba2a

Browse files
authored
[SYCL][NATIVECPU] Use ur_memory_scope_capability_flags_t in NativeCPU adapter (#18537)
A fix for the NativeCPU adapter to use ur_memory_scope_capability_flags_t instead of uint64_t. Required for NativeCPU to pass AtomicRef -related e2e and SYCL-CTS tests.
1 parent ccb079c commit 5b5ba2a

File tree

1 file changed

+5
-4
lines changed
  • unified-runtime/source/adapters/native_cpu

1 file changed

+5
-4
lines changed

unified-runtime/source/adapters/native_cpu/device.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,11 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
396396
}
397397
case UR_DEVICE_INFO_ATOMIC_FENCE_SCOPE_CAPABILITIES:
398398
case UR_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES: {
399-
uint64_t Capabilities = UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_ITEM |
400-
UR_MEMORY_SCOPE_CAPABILITY_FLAG_SUB_GROUP |
401-
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP |
402-
UR_MEMORY_SCOPE_CAPABILITY_FLAG_DEVICE;
399+
ur_memory_scope_capability_flags_t Capabilities =
400+
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_ITEM |
401+
UR_MEMORY_SCOPE_CAPABILITY_FLAG_SUB_GROUP |
402+
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP |
403+
UR_MEMORY_SCOPE_CAPABILITY_FLAG_DEVICE;
403404
return ReturnValue(Capabilities);
404405
}
405406
case UR_DEVICE_INFO_ESIMD_SUPPORT:

0 commit comments

Comments
 (0)