simulink model -> processing on GPU (CUDA)
古いコメントを表示
Hi,I have my model (Simulink), where use MATLAB-Function bloks, I want transfer calculations my model on GPU (CUDA), Can I use gpuArray function in MATLAB-Function blok in Simulink?
回答 (1 件)
Kaustubha Govind
2012 年 8 月 13 日
3 投票
It doesn't look like any of the GPU functions are in the list of functions supported for code-generation, so you cannot directly use them in the (Embedded) MATLAB Function block. But you should be able to perform these operations by writing a separate MATLAB function that performs the GPU operations, and call your function using the coder.extrinsic directive. If you are using an Interpreted MATLAB Function block, you don't have to worry about code-generation support, so these functions should work.
1 件のコメント
Bhavanithya Thiraviaraja
2018 年 5 月 17 日
Running on the GPU with interpreted mallab function or by using coder.extrinsic.. Does this make the Simulation faster?
カテゴリ
ヘルプ センター および 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!