GPU and the MATLAB compiler

조회 수: 1 (최근 30일)
Gregory Vernon
Gregory Vernon 2011년 6월 9일
댓글: Walter Roberson 2024년 11월 16일
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?

채택된 답변

Walter Roberson
Walter Roberson 2011년 6월 9일
Always in motion the future is. Difficult to see.
  댓글 수: 1
Chirag Gupta
Chirag Gupta 2011년 6월 9일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Steve Van Hooser
Steve Van Hooser 2024년 11월 15일
What is the latest on this? Does the Matlab Compiler still not produce GPU code?
  댓글 수: 3
Steve Van Hooser
Steve Van Hooser 2024년 11월 16일
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 2024년 11월 16일
That's about right.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by