libclc

OpenCL C library implementation for LLVM/Clang compilers

brewmacoslinux
Try with needOr install directly
Source

About

Implementation of the library requirements of the OpenCL C programming language

Commands

libclc

Examples

Verify libclc installation and check available OpenCL targets$ ls $(brew --prefix libclc)/lib
Use libclc when compiling OpenCL kernels with clang$ clang -cc1 -emit-llvm -finclude-default-header kernel.cl -o kernel.ll
Link libclc libraries with OpenCL program compilation$ clang -c -target amdgcn-amd-amdhsa kernel.cl -o kernel.o