James Stewart
James Stewart

Reputation: 51

Error CL_INVALID_PROGRAM_EXECUTABLE when calling clEnqueueNDRangeKernel

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

Answers (1)

Eric Bainville
Eric Bainville

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

Related Questions