GPU programming for Mac M1
Mostra commenti meno recenti
Hello!
I was wondering whether anyone has found a way to use functions such as gpuArray on Matlab M1 GPUs.
Alternatively is there other ways to perform computations on the GPU for MacOS. I would appreciate any ideas/information.
Does Matlab have any plans to extend their GPU programming to non NVIDIA GPUs?
Apologies if this has been asked before, all posts I found were quite dated.
3 Commenti
John D'Errico
il 19 Nov 2024
What has been said before (and the reasons for that choice) is still valid. TMW has not implemented what you want, and since then, has made no announcements of any change in that policy to extend GPU support to the M-series. This might change in the future of course if they perceive a significant increase in demand, and Apple changes how they do things in these matters. But I've heard nothing of any planned changes.
Matilda
il 19 Nov 2024
John D'Errico
il 19 Nov 2024
It is something I am sorry to have said, since I use only Macs for my work myself. As Mac users, will all keep on hoping for the best though.
Risposta accettata
Più risposte (1)
Walter Roberson
il 19 Nov 2024
1 voto
If I recall correctly, someone posted indicating that they had generated mex C++ code that calls into Apple's GPU routines, and invokes the code from within MATLAB. This is not the same as using gpuArray() with automatic dispatch to GPU as needed. As far as I recall, the person had not made the interface code publicly available.
Does Matlab have any plans to extend their GPU programming to non NVIDIA GPUs?
The last time I asked Mathworks about this, the answer was that they had no plans to extend GPU programming to Apple Silicon.
It is difficult to get straight answers from Apple about the best way to use the GPU.
Apple has a history of leaving pieces of technology undocumented, and letting ecosystems of best-effort grow up, only to later deliberately break the best-effort code, saying, "We never said to do it that way so any problems are your fault!"
But also, Mathworks GPU support is primarily aimed at Deep Learning support. Mathworks chases the Deep Learning market. The current research work that is using Apple Silicon GPU is a comparatively small portion of research work. The majority of research work is on NVIDIA GPU; the second largest group of Deep Learning research work is on IBM equipment; other groups are fair behind on portion of the market. By market share measures, Mathworks would be better off going after support for IBM equipment.
Categorie
Scopri di più su Matrix Indexing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!