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 日

2 投票

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 日

0 投票

What is the latest on this? Does the Matlab Compiler still not produce GPU code?

3 件のコメント

Walter Roberson
Walter Roberson 2024 年 11 月 15 日
編集済み: Walter Roberson 2024 年 11 月 15 日
MATLAB Compiler still does not produce GPU code.
MATLAB Compiler is able to process code that uses Parallel Computing Toolbox, including the gpuArray() function, so it is able to use GPU.
Note that MATLAB Coder is not able to process GPU related functions. There is a GPU Coder product.
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet 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