OpenCL compiler


I have created a tool that compiles OpenCL source files by feeding them to the driver and displaying the resulting output. The purpose of this is to ensure that your OpenCL sources will compile before you try to run the program that actually uses them. I’ve found it pretty useful in development cycles, so I thought I should share it.

The idea is to create a build rule for .cl files and have CLCC (the compiler) process them. The output it produces should match “regular” compiler output and if you’re working inside and IDE such as Visual Studio, any errors will “link” to the actual source locations.