cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

nibal
Challenger

opencl compiler error messages

Hi,

I'm trying to compile an ocl kernel with clBuildProgram in Ubuntu(Linux). It fails with only this message:

CL_BUILD_PROGRAM_FAILURE

Anyway i can get more useful info (offending line, variable, etc)?

TIA

Nikos

0 Likes
1 Solution
dipak
Big Boss

You can use clGetProgramBuildInfo() with the parameter CL_​PROGRAM_​BUILD_​LOG to get the compile/build log to see if it provides more information about the error. To know the usage, please see https://www.khronos.org/registry/OpenCL//sdk/2.2/docs/man/html/clGetProgramBuildInfo.html

Thanks.

View solution in original post

1 Reply
dipak
Big Boss

You can use clGetProgramBuildInfo() with the parameter CL_​PROGRAM_​BUILD_​LOG to get the compile/build log to see if it provides more information about the error. To know the usage, please see https://www.khronos.org/registry/OpenCL//sdk/2.2/docs/man/html/clGetProgramBuildInfo.html

Thanks.