Make sure to double check that we have properly bound the OpenCL API

before using it.
This commit is contained in:
George ElKoura 2015-03-29 17:06:24 -07:00
parent e9b34b596c
commit da9c8a83dc

View File

@ -59,6 +59,11 @@ static bool HAS_CL_VERSION_1_1 () {
}
static bool initCL(cl_context *clContext, cl_command_queue *clQueue)
{
if (!clGetPlatformIDs) {
printf("Error clGetPlatformIDs call not bound.\n");
return false;
}
cl_int ciErrNum;
cl_platform_id cpPlatform = 0;