Skip to content

Commit 80fb7d6

Browse files
committed
Format code and fix compile error
1 parent 707a124 commit 80fb7d6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

sycl/source/detail/device_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,9 +1204,9 @@ class device_impl : public std::enable_shared_from_this<device_impl> {
12041204
}
12051205
CASE(ext::intel::info::device::node_mask) {
12061206
if (!has(aspect::ext_intel_device_info_node_mask))
1207-
throw exception(
1208-
make_error_code(errc::feature_not_supported),
1209-
"The device does not have the ext_intel_device_info_node_mask aspect");
1207+
throw exception(make_error_code(errc::feature_not_supported),
1208+
"The device does not have the "
1209+
"ext_intel_device_info_node_mask aspect");
12101210
return get_info_impl<UR_DEVICE_INFO_NODE_MASK>();
12111211
}
12121212
else {

unified-runtime/source/adapters/level_zero/device.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ ur_result_t urDeviceGetInfo(
13711371
// Intel extension for device node mask. This returns the node mask as
13721372
// uint32_t. For details about this extension,
13731373
// see sycl/doc/extensions/supported/sycl_ext_intel_device_info.md.
1374-
1374+
13751375
// Node mask is provided through the L0 LUID extension so support for this
13761376
// extension must be checked.
13771377
if (Device->Platform->ZeLUIDSupported) {
@@ -1383,8 +1383,7 @@ ur_result_t urDeviceGetInfo(
13831383

13841384
ZE2UR_CALL(zeDeviceGetProperties, (ZeDevice, &DeviceProp));
13851385

1386-
const auto &nodeMask = LuidDesc.nodeMask;
1387-
return ReturnValue(nodeMask, sizeof(nodeMask));
1386+
return ReturnValue(LuidDesc.nodeMask);
13881387
} else {
13891388
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
13901389
}

0 commit comments

Comments
 (0)