doe300 / VC4C

Compiler for the VC4CL OpenCL implementation
MIT License
118 stars 37 forks source link
c-plus-plus compiler llvm-ir opencl raspberry spir-v

Status

CircleCI

VC4C

Compiler for the VC4CL OpenCL-implementation. This compiler supports OpenCL C (via LLVM or SPIRV-LLVM), LLVM-IR and SPIR-V code, depending on the build configuration.

Required software

Build

The following configuration variables can be set in CMake:

Package

Run cpack -G DEB to create a debian package.

NOTE: Any compilation error when packaging can be ignored!

Known Issues

If the VC4CLStdLib is updated, the LLVM pre-compiled header (PCH) needs to be rebuilt. For this to happen, simply delete the file VC4CLStdLib.h.pch (located in the source/installation directory of the VC4CLStdLib project, depending on whether it was installed) and rebuild the VC4C compiler (or just the vc4cl-stdlib target).

When BUILD_TESTING is on, some of the files (TestConversionFunctions.cpp.o) have to be compiled in one thread (make -j 1).