Skip to content

Commit a508c49

Browse files
author
Lamzed-Short, Andrew
committed
Fixed level_zero atomic_mem_order_caps value
1 parent 2f99c5a commit a508c49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/plugins/unified_runtime/pi2ur.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ inline pi_result piDeviceGetInfo(pi_device Device, pi_device_info ParamName,
489489
{PI_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES,
490490
(zer_device_info_t)ZER_EXT_DEVICE_INFO_ATOMIC_MEMORY_SCOPE_CAPABILITIES},
491491
{PI_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES,
492-
(zer_device_info_t)ZER_EXT_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES},
492+
(zer_device_info_t)ZER_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES},
493493
};
494494

495495
auto InfoType = InfoMapping.find(ParamName);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ ZER_APIEXPORT zer_result_t ZER_APICALL zerDeviceGetInfo(
11621162
return ReturnValue(bool{false});
11631163
}
11641164

1165-
case ZER_EXT_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES: {
1165+
case ZER_DEVICE_INFO_ATOMIC_MEMORY_ORDER_CAPABILITIES: {
11661166
return ReturnValue(uint32_t{PI_MEMORY_ORDER_RELAXED |
11671167
PI_MEMORY_ORDER_ACQ_REL |
11681168
PI_MEMORY_ORDER_SEQ_CST});

0 commit comments

Comments
 (0)