aneccodeal
aneccodeal

Reputation: 8913

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 based on Clang and LLVM before we go off and try to implement our own...

Upvotes: 4

Views: 1241

Answers (2)

Jerry Coffin
Jerry Coffin

Reputation: 490008

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.

Upvotes: 3

arsenm
arsenm

Reputation: 2933

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.

Upvotes: 1

Related Questions