Can I get specific CL error (what and where)? CL_BUILD_PROGRAM_FAILURE is not very helpful…
Some old code I dug up. It worked when I tested it.
final int build = clBuildProgram(program, clDevice, "", null);
if ( build != CL_SUCCESS ) {
System.out.println("BUILD LOG: " + program.getBuildInfoString(clDevice, CL_PROGRAM_BUILD_LOG));
throw new RuntimeException("Failed to build CL program, status: " + build);
}
Thanks!!!