资 源 简 介
One of the pains of developing OpenCL applications are run-time compilation errors, which are as descriptive as getting a CL_BUILD_PROGRAM_FAILURE after calling clBuildProgram(). Of course, you can include the code to handle compilation errors, get the compilation log, and print it on the screen. I do not like this approach because most of the time, my application users do not care about these sort of errors and adding this code to each application I develop is boring.
OpenCLcc is a compiler wrapper that performs a static null compilation of OpenCL kernels. Basically, openclcc is just the code to set up a minimum OpenCL context, load one or more text files containing OpenCL kernel code, compile those files and show the OpenCL compiler output to the user. This simple piece of code eases OpenCL development, because you can compile your OpenCL kernels in an isolated way, and get descriptive compilation errors.
This little tool is quite helpful