GPU and the MATLAB compiler
19 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Walter Roberson
2011-6-9
Always in motion the future is. Difficult to see.
1 个评论
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
2024-11-15,16:21
What is the latest on this? Does the Matlab Compiler still not produce GPU code?
3 个评论
Steve Van Hooser
2024-11-16,15:07
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
另请参阅
类别
在 Help Center 和 File 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!