package/libclc: new package
authorValentin Korenblit <valentinkorenblit@gmail.com>
Sat, 20 Oct 2018 14:34:49 +0000 (16:34 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 20 Oct 2018 15:35:26 +0000 (17:35 +0200)
commitf265e5d9054b041e895d5c67f9c056e661ef4785
treebe562ec137840abbc55c2b30536cdea1b4cd0480
parent826b57a17064c18a7fe2b805ea689f171603e7f0
package/libclc: new package

This patch provides libclc, an open source implementation of the
library requirements of the OpenCL C programming language, as
specified by the OpenCL 1.1 Specification. It is intended to be used
with Clover (Mesa3D's OpenCL implementation for AMD GPUs.

It needs to be compiled with host-clang, as it generates LLVM IR bitcode
files containing device builtin functions for each target.

Currently, libclc supports AMDGCN, R600 and NVPTX targets.

As OpenCL kernels can be built dynamically on the target using libclang and
libLLVM, it is necessary to have clc headers installed on the target. Buildroot
removes /usr/include in its target-finalize step, so clc headers are installed to
/usr/share/clc.

Signed-off-by: Valentin Korenblit <valentin.korenblit@smile.fr>
Signed-off-by: Valentin Korenblit <valentinkorenblit@gmail.com>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
[Thomas:
 - fix license information as noticed by Romain
 - add comment to explain why --includedir=/usr/share is used]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/libclc/Config.in [new file with mode: 0644]
package/libclc/libclc.hash [new file with mode: 0644]
package/libclc/libclc.mk [new file with mode: 0644]