mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Review fixes - check error state
This commit is contained in:
committed by
Alastair Murray
parent
75dfd356d7
commit
c85527cec7
@@ -161,7 +161,7 @@ int get_program_with_il(clProgramWrapper &prog,
|
||||
else {
|
||||
cl_platform_id platform;
|
||||
err = clGetDeviceInfo(deviceID, CL_DEVICE_PLATFORM, sizeof(cl_platform_id), &platform, NULL);
|
||||
print_error(err, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed");
|
||||
SPIRV_CHECK_ERROR(err, "Failed to get platform info with clGetDeviceInfo");
|
||||
clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL;
|
||||
|
||||
clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn)clGetExtensionFunctionAddressForPlatform(platform, "clCreateProgramWithILKHR");
|
||||
|
||||
Reference in New Issue
Block a user