Parfor on GPU
古いコメントを表示
I want to run two functions in parallel on a GPU. For this i want to use pafor(eg: for ii=1 fun1 and ii=2 fun2).
Can variables on GPU be used for parfor operations on GPU?
採用された回答
その他の回答 (1 件)
Titus Edelhofer
2012 年 4 月 23 日
0 投票
Hi Sampath,
probably not. I guess it would make not much sense anyway, because the two functions would share the same computational power of the GPU (like running parfor on a single core machine).
If you happen to have to GPUs you could use parfor/spmd to split the functions onto the two GPUs ...
Titus
2 件のコメント
Pavel Sinha
2018 年 9 月 11 日
But the GPUs are milti-core computation engine. If a GPU has enough resources, can Matlab run two functions in parallel on the same GPU?
Walter Roberson
2018 年 9 月 11 日
編集済み: Walter Roberson
2022 年 8 月 15 日
Nvidia gpu cores are restricted to running the same instruction as the other cores in the same SM. My reading of the linked article is that different SM could be running unrelated tasks efficiently. However, the end of task processing of bringing back results and status looks like it would potentially be inefficient.
カテゴリ
ヘルプ センター および File Exchange で Parallel Computing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!