Parfor does not parallelize after the first time
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Abdolkarim Mohammadi
am 22 Mai 2020
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.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Parallel for-Loops (parfor) finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!