Is Apple's OpenCL implementation using CLang and LLVM open-source?
It's clear that Apple has an OpenCL implementation based on Clang and LLVM. There's also a talk by an Apple Engineer about what it took to get OpenCL going on LLVM here
However, is the code for this implementation available under some sort of open-source license or is this closed source software? If the code hasn't been released, anyone know if perchance it might be in the future? Would like to know if there is an open-source OpenCL implementation bas开发者_运维知识库ed on Clang and LLVM before we go off and try to implement our own...
To the best of my knowledge(TTBOMK), the only (even partial) implementation of OpenCL that's open-source is Clover. Unfortunately, it's not finished or really even very close to usable, but you might want to look at it anyway.
Well, I believe the hard parts are all in clang. For instance, it's ext_vector_type extension is basically what you get in OpenCL. I don't think any of Apple's host part is open. The hard compiler part I would think is all there for you in clang.
精彩评论