Skip to content

Commit 24ee26e

Browse files
author
JackAKirk
committed
Swapped (Err == PI_INVALID_VALUE) with (Err != PI_SUCCESS).
Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
1 parent 6a0f948 commit 24ee26e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/device_info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ template <> struct get_device_info<bool, info::device::atomic64> {
243243
RT::PiResult Err = Plugin.call_nocheck<PiApiKind::piDeviceGetInfo>(
244244
dev, pi::cast<RT::PiDeviceInfo>(info::device::atomic64), sizeof(result),
245245
&result, nullptr);
246-
if (Err == PI_INVALID_VALUE) {
246+
if (Err != PI_SUCCESS) {
247247
return false;
248248
}
249249
return result;

0 commit comments

Comments
 (0)