diff --git a/test_conformance/device_execution/main.cpp b/test_conformance/device_execution/main.cpp index 8f449f19..8fc0b6c4 100644 --- a/test_conformance/device_execution/main.cpp +++ b/test_conformance/device_execution/main.cpp @@ -43,9 +43,10 @@ test_status InitCL(cl_device_id device) { cl_uint max_queues_size; error = clGetDeviceInfo(device, CL_DEVICE_MAX_ON_DEVICE_QUEUES, sizeof(max_queues_size), &max_queues_size, NULL); - if (error != CL_SUCCESS) { - print_error(error, "Unable to get max queues on device"); - return TEST_FAIL; + if (error != CL_SUCCESS) + { + print_error(error, "Unable to get max queues on device"); + return TEST_FAIL; } if ((max_queues_size == 0) && (version >= Version(3, 0))) diff --git a/test_conformance/device_timer/main.cpp b/test_conformance/device_timer/main.cpp index 668ea73e..1c460af8 100644 --- a/test_conformance/device_timer/main.cpp +++ b/test_conformance/device_timer/main.cpp @@ -30,14 +30,15 @@ test_definition test_list[] = { ADD_TEST( device_and_host_timers ), }; -test_status InitCL(cl_device_id device) { - auto version = get_device_cl_version(device); - auto expected_min_version = Version(2, 1); - cl_platform_id platform; - cl_ulong timer_res; - cl_int error; +test_status InitCL(cl_device_id device) +{ + auto version = get_device_cl_version(device); + auto expected_min_version = Version(2, 1); + cl_platform_id platform; + cl_ulong timer_res; + cl_int error; - if (version < expected_min_version) + if (version < expected_min_version) { version_expected_info("Test", "OpenCL", expected_min_version.to_string().c_str(), @@ -45,21 +46,21 @@ test_status InitCL(cl_device_id device) { return TEST_SKIP; } - error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM, - sizeof(platform), &platform, NULL); - if (error != CL_SUCCESS) - { - print_error(error, "Unable to get device platform"); - return TEST_FAIL; - } + error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(platform), + &platform, NULL); + if (error != CL_SUCCESS) + { + print_error(error, "Unable to get device platform"); + return TEST_FAIL; + } - error = clGetPlatformInfo(platform, CL_PLATFORM_HOST_TIMER_RESOLUTION, - sizeof(timer_res), &timer_res, NULL); - if (error != CL_SUCCESS) - { - print_error(error, "Unable to get host timer capabilities"); - return TEST_FAIL; - } + error = clGetPlatformInfo(platform, CL_PLATFORM_HOST_TIMER_RESOLUTION, + sizeof(timer_res), &timer_res, NULL); + if (error != CL_SUCCESS) + { + print_error(error, "Unable to get host timer capabilities"); + return TEST_FAIL; + } if ((timer_res == 0) && (version >= Version(3, 0))) {