Fix code format errors vs.3

This commit is contained in:
Grzegorz Wawiorko
2020-07-06 13:56:01 +02:00
committed by Alastair Murray
parent 450f583800
commit f1dd503c6c
2 changed files with 26 additions and 24 deletions

View File

@@ -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)))