workers idling after a while when using parfor loop

3 Ansichten (letzte 30 Tage)
Johan Reinink
Johan Reinink am 6 Nov. 2015
Kommentiert: Edric Ellis am 6 Nov. 2015
I have a script that fits 2D gaussians in captured images from my measurement setup. Since I generate ~100.000 images every measurement that's quite a task. I have a parfor loop to analyze these images and it works fine, but after several hours only about a quarter of the workers are still busy, the rest is idling. This leaves the system underused and I can't figure out why, especially because it starts out working fine but breaks somewhere along the way. Can anybody help me to debug this?
  1 Kommentar
Edric Ellis
Edric Ellis am 6 Nov. 2015
parfor uses a static means of distributing work, but it attempts to load-balance so that this situation does not occur. Do you know if the analysis can take a different amount of time for different images? If so, that can cause load imbalances.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

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!

Translated by