mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +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;
|
cl_platform_id platform;
|
||||||
error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
error = clGetDeviceInfo(device, CL_DEVICE_PLATFORM,
|
||||||
sizeof(cl_platform_id), &platform, NULL);
|
sizeof(cl_platform_id), &platform, NULL);
|
||||||
print_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed");
|
test_error(error, "clGetDeviceInfo for CL_DEVICE_PLATFORM failed");
|
||||||
clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL;
|
|
||||||
|
|
||||||
|
clCreateProgramWithILKHR_fn clCreateProgramWithILKHR = NULL;
|
||||||
clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn)
|
clCreateProgramWithILKHR = (clCreateProgramWithILKHR_fn)
|
||||||
clGetExtensionFunctionAddressForPlatform(
|
clGetExtensionFunctionAddressForPlatform(
|
||||||
platform, "clCreateProgramWithILKHR");
|
platform, "clCreateProgramWithILKHR");
|
||||||
|
|||||||
Reference in New Issue
Block a user