clcc is an offline compiler for OpenCL kernels
git clone https://github.com/Maratyszcza/clcc.git
cd clcc
pip install --upgrade .
Active projects:
- Apple ships an offline OpenCL compiler openclc for OS X with XCode. It compiles to portable bitcode for CPUs or GPUs, which is recognized by Apple drivers. Mac Developer library documents how to use it.
- AMD maintains CLOC - OpenCL Offline Compiler for compiling OpenCL kernels to HSAIL and BRIG formats.
- Intel OpenCL SDK contains a KernelBuilder. However, it can not build kernels for devices which are not installed on the host system.
- Mali offline compiler can compile OpenCL shaders for ARM's OpenCL-enabled Mali devices and reports some statistics useful for performance optimization. However, it doesn't let you save the machine code for a kernel.
Unmaintained projects:
- Command line interface to the NVIDIA OpenCL compiler from Leith Bade wraps undocumented interfaces of nVidia OpenCL driver. No updates since 2013.
- CLCC - The OpenCL kernel Compiler from George van Venrooij. No updates since 2012.
- OpenCLcc from Isaac Gelado. No updates since 2011.
- CLC: OpenCL compiler and syntax checker from Matias Holm. No updates since 2010.
- OpenCL-Compiler from Chris Lundquist. No updates since 2010.