Dev
Dev

Reputation: 118

Can you use Apple’s Metal for General Purpose GPU programming?

I have experience with CUDA, but I’ve been wondering if it’s possible to use Metal as an alternative to OpenCL on a Mac for High Performance Computing purposes. It doesn’t seem like there is a lot of material available of parallel programming with Metal outside of graphics.

Upvotes: 5

Views: 2676

Answers (1)

Ken Thomases
Ken Thomases

Reputation: 90681

Yes, you can use Metal for general purpose GPU programming. Apple provides some sample code with a bit of a tutorial.

The main thing that Metal lacks (so far) for compute shaders is support for double.

Upvotes: 6

Related Questions