File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -748,16 +748,17 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
748
748
return ReturnValue (Capabilities);
749
749
}
750
750
case UR_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES:
751
- case UR_DEVICE_INFO_ATOMIC_FENCE_SCOPE_CAPABILITIES: {
752
- // SYCL2020 4.6.4.2 minimum mandated capabilities for
753
- // atomic_fence/memory_scope_capabilities.
754
- // Because scopes are hierarchical, wider scopes support all narrower
755
- // scopes. At a minimum, each device must support WORK_ITEM, SUB_GROUP and
756
- // WORK_GROUP. (https://github.com/KhronosGroup/SYCL-Docs/pull/382)
757
751
uint64_t Capabilities = UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_ITEM |
758
752
UR_MEMORY_SCOPE_CAPABILITY_FLAG_SUB_GROUP |
759
753
UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP;
760
754
return ReturnValue (Capabilities);
755
+ case UR_DEVICE_INFO_ATOMIC_FENCE_SCOPE_CAPABILITIES: {
756
+ uint64_t Capabilities = UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_ITEM |
757
+ UR_MEMORY_SCOPE_CAPABILITY_FLAG_SUB_GROUP |
758
+ UR_MEMORY_SCOPE_CAPABILITY_FLAG_WORK_GROUP |
759
+ UR_MEMORY_SCOPE_CAPABILITY_FLAG_DEVICE |
760
+ UR_MEMORY_SCOPE_CAPABILITY_FLAG_SYSTEM;
761
+ return ReturnValue (Capabilities);
761
762
}
762
763
case UR_DEVICE_INFO_ATOMIC_FENCE_ORDER_CAPABILITIES: {
763
764
// SYCL2020 4.6.4.2 minimum mandated capabilities for
You can’t perform that action at this time.
0 commit comments