Reporting build errors

Reporting build errors

  Is there a way to report compile errors for the kernels? cl::Program::build() simply returns CL_BUILD_PROGRAM_FAILURE which doesn't give any indication where the errors are.

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

You can get the build log by calling cl::Program::getInfo and passing the CL_PROGRAM_BUILD_LOG param. Have you tried that? Or you can use the KernelBuilder to verify if your kernel has any errors, if you are using the Intel OpenCL SDK.


cl::Program::getBuildInfo was what I was looking for. Thanks!

  result =,NULL,NULL,NULL);

  std::string buildLog =


  if(result != CL_SUCCESS)


    printf("### Kernel compile log ###n%sn",buildLog.c_str());



Leave a Comment

Please sign in to add a comment. Not a member? Join today