cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

Highlighted
Challenger
Challenger

opencl compiler error messages

Jump to solution

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 Kudos
Reply
1 Solution

Accepted Solutions
Highlighted
Staff
Staff

Re: opencl compiler error messages

Jump to solution

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
Highlighted
Staff
Staff

Re: opencl compiler error messages

Jump to solution

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