mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 15:39:03 +00:00
SPIR-V handling on different OpenCL devices version
Example usage for bruteforce and spirv_new
This commit is contained in:
committed by
Alastair Murray
parent
d643dc5399
commit
3730bce4e8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user