How to use the GPU in Apple M2 from Haskell?

Does anyone have a good reference for explicitly accessing the GPU in the new Apple M2 chip from a user Haskell program?

Write a program in metal shaders and link a c wrapper for the c++ wrapper
of metal api into Haskell via the ffi. Or use opencl / OpenGL APIs that
still work despite being deprecated.
On Fri, Oct 27, 2023 at 8:11 PM David Banas
Does anyone have a good reference for explicitly accessing the GPU in the new Apple M2 chip from a user Haskell program?
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

Thanks, Carter! :) Wrt/ this: "Or use opencl / OpenGL APIs that still work despite being deprecated." Do you happen to know whether they work when using one of the newer GHC versions to compile natively to the `aarch64` architecture? Thanks, -db
On Oct 28, 2023, at 6:19 PM, Carter Schonwald
wrote: Or use opencl / OpenGL APIs that still work despite being deprecated.

yes, have you tried using them?
they will work the same way
On Tue, Nov 14, 2023 at 5:50 AM David Banas
Thanks, Carter! :)
Wrt/ this:
"Or use opencl / OpenGL APIs that still work despite being deprecated."
Do you happen to know whether they work when using one of the newer GHC versions to compile natively to the `aarch64` architecture?
Thanks, -db
On Oct 28, 2023, at 6:19 PM, Carter Schonwald
wrote: Or use opencl / OpenGL APIs that still work despite being deprecated.
participants (2)
-
Carter Schonwald
-
David Banas