Skip to content

Commit 01ba391

Browse files
Dan Holmeskbenzie
authored andcommitted
Fix code formatting mistakes
1 parent 7fd776b commit 01ba391

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

source/loader/ur_lib.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
342342
ur_platform_backend_t platformBackend;
343343
if (UR_RESULT_SUCCESS !=
344344
urPlatformGetInfo(hPlatform, UR_PLATFORM_INFO_BACKEND,
345-
sizeof(ur_platform_backend_t), &platformBackend, 0)) {
345+
sizeof(ur_platform_backend_t), &platformBackend, 0)) {
346346
return UR_RESULT_ERROR_INVALID_PLATFORM;
347347
}
348348
const std::string platformBackendName = // hPlatform->get_backend_name();
@@ -409,8 +409,7 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
409409
return ::UR_DEVICE_TYPE_ALL;
410410
};
411411

412-
auto getDeviceId =
413-
[&](const std::string &input) -> DeviceIdType {
412+
auto getDeviceId = [&](const std::string &input) -> DeviceIdType {
414413
if (input.find_first_not_of("0123456789") == std::string::npos) {
415414
return std::stoul(input);
416415
}
@@ -794,7 +793,6 @@ ur_result_t urDeviceGetSelected(ur_platform_handle_t hPlatform,
794793
}
795794
}
796795

797-
798796
return UR_RESULT_SUCCESS;
799797
}
800798
} // namespace ur_lib

test/conformance/device/urDeviceGetSelected.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ TEST_F(urDeviceGetSelectedTest, SuccessSubsetOfDevices) {
4343

4444
TEST_F(urDeviceGetSelectedTest, InvalidNullHandlePlatform) {
4545
uint32_t count = 0;
46-
ASSERT_EQ_RESULT(
47-
UR_RESULT_ERROR_INVALID_NULL_HANDLE,
48-
urDeviceGetSelected(nullptr, UR_DEVICE_TYPE_ALL, 0, nullptr, &count));
46+
ASSERT_EQ_RESULT(UR_RESULT_ERROR_INVALID_NULL_HANDLE,
47+
urDeviceGetSelected(nullptr, UR_DEVICE_TYPE_ALL,
48+
0, nullptr, &count));
4949
}
5050

5151
TEST_F(urDeviceGetSelectedTest, InvalidEnumerationDevicesType) {

0 commit comments

Comments
 (0)