Is the Apple OpenCL implementation using open-source CLang and LLVM?

It is clear that Apple has an OpenCL implementation based on Clang and LLVM. There, Apple Engineer also talked about what it takes for OpenCL to migrate to LLVM here.

However, is the code for this implementation available under any open source license, or is it closed source software? If the code has not been released, does anyone know if this is possible in the future? I would like to know if there is an OpenCL version of OpenCL based on Clang and LLVM before we leave and try to implement our own ...

+4
source share
2 answers

As far as I know (TTBOMK), the only (even partial) OpenCL implementation that is open-source Clover , Unfortunately, it is not finished or really even very close to use, but you can look at it anyway.

+3
source

Ok, I find all the heavy parts in clang. For example, the ext_vector_type extension is basically what you get in OpenCL. I do not think that part of the Apple host is open. The tough part of the compiler that I think of is all for you in clang.

+1
source

All Articles