フィルターのクリア

Add GPU to the parallel pool

1 回表示 (過去 30 日間)
Antonio Carlo Bertolino
Antonio Carlo Bertolino 2017 年 10 月 27 日
コメント済み: Matt J 2017 年 10 月 27 日
Hello, I would like to know if it were possible to use the GPU as if it were one of the processor cores, adding it into the pool as an extra worker. I'm thinking about it in order to use also the GPU in the calculation performed by the "parsim" command to speed up the simulations I need to do. Thanks in advance, kind regards Antonio

採用された回答

Matt J
Matt J 2017 年 10 月 27 日
編集済み: Matt J 2017 年 10 月 27 日
This is only possible in the sense that, once you launch a gpuArray operation from one of the workers, MATLAB will carry on with any exclusively CPU operations on that worker without first waiting for the GPU operations to finish. When you're ready to claim the GPU results, you would use gather() to move them back to the host.
  2 件のコメント
Antonio Carlo Bertolino
Antonio Carlo Bertolino 2017 年 10 月 27 日
I'm using the parsim command to run Simulink simulations in parallel on different workers: I only set the parameters to change from one simulation to the following. All the trasfering operations between the main MATLAB session and the workers are performed and managed from inside parsim command. And I was wondering if one of the worker could be the GPU. But I don't I can use gpuArray command, insofar I know.
Matt J
Matt J 2017 年 10 月 27 日
No, the GPU cannot be used as an additional member of the parpool.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by