Parfor does not parallelize after the first time
4 ビュー (過去 30 日間)
古いコメントを表示
I am using 16 workers.
My parfor loop requires 70 loops in total.
When I run the parfor it starts 16 loops.
Then as the loops finish one by one, the solver does not start new loops.
It accepts one loop at a time for the rest of load.
So the parallelization stops after the first time the load is distributed.
How can I overcome this problem? Thank you.
2 件のコメント
Abdolkarim Mohammadi
2020 年 5 月 22 日
Please provide your code or at least its outlines. parfor uses several techniques to figure out how to chop your matrices for parallel computationn, so it should be used carefully. Using for instead of parfor can be useful for debugging since debugging cannot be done inside a parfor loop.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!