GPU and the MATLAB compiler

3 Ansichten (letzte 30 Tage)
Gregory Vernon
Gregory Vernon am 9 Jun. 2011
Kommentiert: Walter Roberson am 16 Nov. 2024
I am aware that GPU computing is not supported in the MATLAB compiler. I was wondering if this is just "temporary" and will be supported in a future version. If not, is there a work-around anyone can suggest?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 9 Jun. 2011
Always in motion the future is. Difficult to see.
  1 Kommentar
Chirag Gupta
Chirag Gupta am 9 Jun. 2011
one vote for this!
If you are willing to write CUDA C code, you could just mex the code and include it with the MATLAB compiler.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Steve Van Hooser
Steve Van Hooser am 15 Nov. 2024
What is the latest on this? Does the Matlab Compiler still not produce GPU code?
  3 Kommentare
Steve Van Hooser
Steve Van Hooser am 16 Nov. 2024
I think I get it. I understood the following:
  • The Matlab Compiler does not produce new GPU code that does not already exist in Matlab.
  • When the Matlab Compiler compiles Matlab code that calls the Parallel Computing Toolbox's internal code that uses GPUs (such as code that calls gpuArray()), then the compiled executable does call an available NVIDIA GPU and will fail if one isn't there.
And then I see the separate product that is designed to generate custom GPU code from various MathWorks products.
Thanks
Steve
Walter Roberson
Walter Roberson am 16 Nov. 2024
That's about right.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with GPU Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by