Skip to content

Commit

Permalink
Merge pull request #1527 from PietroGhg/pietro/report_atomics
Browse files Browse the repository at this point in the history
[NATIVECPU] Report correct memory order capabilities for Native CPU
  • Loading branch information
kbenzie authored Jun 4, 2024
2 parents ab151e9 + 53e4346 commit 31ee5d5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/adapters/native_cpu/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
return UR_RESULT_ERROR_INVALID_VALUE;
case UR_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES: {
ur_memory_order_capability_flags_t Capabilities =
UR_MEMORY_ORDER_CAPABILITY_FLAG_RELAXED |
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQUIRE |
UR_MEMORY_ORDER_CAPABILITY_FLAG_RELEASE |
UR_MEMORY_ORDER_CAPABILITY_FLAG_ACQ_REL;
UR_MEMORY_ORDER_CAPABILITY_FLAG_RELAXED;
return ReturnValue(Capabilities);
}
case UR_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES: {
Expand Down

0 comments on commit 31ee5d5

Please sign in to comment.