SPIR-V handling on different OpenCL devices version

Example usage for bruteforce and spirv_new
This commit is contained in:
Grzegorz Wawiorko
2020-03-27 19:32:19 +01:00
committed by Alastair Murray
parent d643dc5399
commit 3730bce4e8
4 changed files with 104 additions and 10 deletions

View File

@@ -1103,7 +1103,11 @@ test_status InitCL( cl_device_id device )
}
gDevice = device;
test_status spirv_status;
spirv_status = check_spirv_compilation_readiness(device);
if (spirv_status != TEST_PASS) {
return spirv_status;
}
if( (error = clGetDeviceInfo( gDevice, CL_DEVICE_MAX_COMPUTE_UNITS, configSize, &gComputeDevices, NULL )) )
gComputeDevices = 1;