Matlab automatically work with multiple graphic cards?
8 ビュー (過去 30 日間)
古いコメントを表示
I have installed two units of GE Force Titan. How can I check whether MATLAB is properly allocating jobs to two GPU?
0 件のコメント
回答 (2 件)
Joss Knight
2014 年 1 月 14 日
To make use of both GPUs in parallel, open a parallel pool with two workers:
parpool('local', 2);
Use gpuDevice to show you which card each lab is using:
spmd
gpuDevice
end
You will find your labs distributed evenly between the GPUs. You can reassign the workers to whichever GPU you like by passing an index to gpuDevice, for instance:
spmd
gpuDevice(labindex)
end
0 件のコメント
Walter Roberson
2013 年 12 月 27 日
I am usually a bit behind in tracking changes to the Parallel Computing Toolbox, so it is possible there has been enhancements that I have not noticed yet.
Last I saw, any one worker could only be associated with a single GPU, but in some circumstances, multiple workers could be associated with the same GPU. Thus MATLAB would not automatically allocate jobs to "available" GPUs, but a worker can request that it be associated with a specific GPU.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Parallel and Cloud についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!