Skip to content

Commit 657da82

Browse files
author
Lamzed-Short, Andrew
committed
Added missing PI mem order enum values to level_zero api
ACQ_REL infers ACQUIRE and RELEASE, so adding them to the return value.
1 parent d9c49ff commit 657da82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,8 @@ ZER_APIEXPORT zer_result_t ZER_APICALL zerDeviceGetInfo(
11641164

11651165
case ZER_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES: {
11661166
return ReturnValue(uint32_t{PI_MEMORY_ORDER_RELAXED |
1167+
PI_MEMORY_ORDER_ACQUIRE |
1168+
PI_MEMORY_ORDER_RELEASE |
11671169
PI_MEMORY_ORDER_ACQ_REL |
11681170
PI_MEMORY_ORDER_SEQ_CST});
11691171
}

0 commit comments

Comments
 (0)