Skip to content

Commit 65dd137

Browse files
committed
clang-format
1 parent e5cb418 commit 65dd137

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

unified-runtime/source/adapters/opencl/platform.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ static bool isBannedOpenCLDevice(cl_device_id device) {
6767
return false;
6868
}
6969

70-
// Filter out FPGA accelerator devices as their usage with OpenCL adapter is deprecated
70+
// Filter out FPGA accelerator devices as their usage with OpenCL adapter is
71+
// deprecated
7172
bool isBanned = (deviceType & CL_DEVICE_TYPE_ACCELERATOR) != 0;
7273

7374
return isBanned;
@@ -157,12 +158,14 @@ urPlatformGet(ur_adapter_handle_t, uint32_t NumEntries,
157158
for (auto &Platform : FilteredPlatforms) {
158159
auto URPlatform = std::make_unique<ur_platform_handle_t_>(Platform);
159160
UR_RETURN_ON_FAILURE(URPlatform->InitDevices());
160-
// Only add platforms that have devices, especially in case all devices are banned
161+
// Only add platforms that have devices, especially in case all
162+
// devices are banned
161163
if (!URPlatform->Devices.empty()) {
162164
Adapter->URPlatforms.emplace_back(URPlatform.release());
163165
}
164166
}
165-
Adapter->NumPlatforms = static_cast<uint32_t>(Adapter->URPlatforms.size());
167+
Adapter->NumPlatforms =
168+
static_cast<uint32_t>(Adapter->URPlatforms.size());
166169
} catch (std::bad_alloc &) {
167170
return UR_RESULT_ERROR_OUT_OF_RESOURCES;
168171
} catch (...) {
@@ -281,8 +284,8 @@ ur_result_t ur_platform_handle_t_::InitDevices() {
281284
try {
282285
Devices.resize(FilteredDevices.size());
283286
for (size_t i = 0; i < FilteredDevices.size(); i++) {
284-
Devices[i] =
285-
std::make_unique<ur_device_handle_t_>(FilteredDevices[i], this, nullptr);
287+
Devices[i] = std::make_unique<ur_device_handle_t_>(FilteredDevices[i],
288+
this, nullptr);
286289
}
287290
} catch (std::bad_alloc &) {
288291
return UR_RESULT_ERROR_OUT_OF_RESOURCES;

0 commit comments

Comments
 (0)