Skip to content

Commit 41f4aa2

Browse files
committed
fixed formatting
1 parent 46f5e2d commit 41f4aa2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,13 @@ static void printDeviceInfo(const device &Device, bool Verbose,
148148
std::cout << std::endl;
149149
}
150150

151-
// Get and print device ID, if it is available.
151+
// Get and print device ID, if it is available.
152152
if (Device.has(aspect::ext_intel_device_id)) {
153-
auto DeviceID = Device.get_info<sycl::ext::intel::info::device::device_id>();
154-
std::cout << Prepend << "DeviceID : " << DeviceID
155-
<< std::endl;
156-
}else{
157-
std::cout << Prepend << "DeviceID : " << "UNKNOWN"
158-
<< std::endl;
153+
auto DeviceID =
154+
Device.get_info<sycl::ext::intel::info::device::device_id>();
155+
std::cout << Prepend << "DeviceID : " << DeviceID << std::endl;
156+
} else {
157+
std::cout << Prepend << "DeviceID : " << "UNKNOWN" << std::endl;
159158
}
160159

161160
// Print sub and sub-sub devices.

0 commit comments

Comments
 (0)