mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
kernelHelpers - add error checking and return if failed
This commit is contained in:
committed by
Alastair Murray
parent
f1dd503c6c
commit
7db81be9a0
@@ -675,9 +675,9 @@ static int create_single_kernel_helper_create_program_offline(cl_context context
|
||||
cl_platform_id platform;
|
||||
error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
||||
sizeof(cl_platform_id), &platform, NULL);
|
||||
print_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed");
|
||||
clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL;
|
||||
test_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed");
|
||||
|
||||
clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL;
|
||||
clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn)
|
||||
clGetExtensionFunctionAddressForPlatform(
|
||||
platform, "clCreateProgramWithILKHR");
|
||||
|
||||
Reference in New Issue
Block a user