GPU programming for Mac M1
42 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Matilda
el 19 de Nov. de 2024 a las 13:07
Respondida: Walter Roberson
el 19 de Nov. de 2024 a las 19:03
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 comentarios
John D'Errico
el 19 de Nov. de 2024 a las 17:28
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.
Respuestas (1)
Walter Roberson
el 19 de Nov. de 2024 a las 19:03
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.
0 comentarios
Ver también
Categorías
Más información sobre GPU Computing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!