How to access the GPU in Apple M2 chip when natively compiling to aarch64?

31 views
Skip to first unread message

David Banas

unread,
Nov 14, 2023, 9:08:17 AM11/14/23
to Accelerate
Hi all,

I'm using a newer GHC version, to natively compile my Haskell code to the Apple M2 chip.
I'd like to access the GPU in the M2. And it seemed like Accelerate was the way to go.
But, it looks like it won't support what I intend.

Does anyone know of a way to access the GPU in the M2 when natively compiling to aarch64?

Thanks,
-db

Henning Thielemann

unread,
Apr 20, 2024, 3:26:41 AMApr 20
to Accelerate
I think Accelerate has only a GPU backend for Nvidia/PTX via LLVM. I guess
other GPUs may be addressed via OpenCL and there was an effort to make an
OpenCL backend for Accelerate:
https://github.com/HIPERFIT/accelerate-opencl

But I am afraid there is nothing that works out of the box.
Reply all
Reply to author
Forward
0 new messages