Skip to content

Commit ce27ca7

Browse files
committed
Fix formatting
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent faafe03 commit ce27ca7

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

sycl/source/detail/platform_impl.cpp

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -492,29 +492,28 @@ platform_impl::get_devices(info::device_type DeviceType) const {
492492
}
493493

494494
ur_device_type_t UrDeviceType = [DeviceType]() {
495-
switch (DeviceType) {
496-
case info::device_type::all:
497-
return UR_DEVICE_TYPE_ALL;
498-
case info::device_type::gpu:
499-
return UR_DEVICE_TYPE_GPU;
500-
case info::device_type::cpu:
501-
return UR_DEVICE_TYPE_CPU;
502-
case info::device_type::accelerator:
503-
return UR_DEVICE_TYPE_FPGA;
504-
case info::device_type::automatic:
505-
return UR_DEVICE_TYPE_DEFAULT;
506-
default:
507-
throw sycl::exception(sycl::make_error_code(sycl::errc::invalid),
508-
"Unknown device type.");
509-
}
495+
switch (DeviceType) {
496+
case info::device_type::all:
497+
return UR_DEVICE_TYPE_ALL;
498+
case info::device_type::gpu:
499+
return UR_DEVICE_TYPE_GPU;
500+
case info::device_type::cpu:
501+
return UR_DEVICE_TYPE_CPU;
502+
case info::device_type::accelerator:
503+
return UR_DEVICE_TYPE_FPGA;
504+
case info::device_type::automatic:
505+
return UR_DEVICE_TYPE_DEFAULT;
506+
default:
507+
throw sycl::exception(sycl::make_error_code(sycl::errc::invalid),
508+
"Unknown device type.");
509+
}
510510
}();
511511
getDevicesImplHelper(UrDeviceType, Res);
512512
return Res;
513513
}
514514

515-
void
516-
platform_impl::getDevicesImplHelper(ur_device_type_t UrDeviceType,
517-
std::vector<device> &OutVec) const {
515+
void platform_impl::getDevicesImplHelper(ur_device_type_t UrDeviceType,
516+
std::vector<device> &OutVec) const {
518517
size_t InitialOutVecSize = OutVec.size();
519518

520519
uint32_t NumDevices = 0;

0 commit comments

Comments
 (0)