Reputation: 51
I have built a library that calls many opencl
kernels. All kernels pass the following:
-oclLoadProgSource
-clCreateProgramWithSource
-clBuildProgram
-clCreateKernel
The problem is, when I launch one of those kernels using clEnqueueNDRangeKernel
, I get the following error : CL_INVALID_PROGRAM_EXECUTABLE
I know that:
Upvotes: 2
Views: 3697
Reputation: 9886
You should test the status returned by clBuildProgram. When it fails, get the compiler diagnostics with clGetProgramBuildInfo(...,CL_PROGRAM_BUILD_LOG,...).
Upvotes: 2