workers idling after a while when using parfor loop

조회 수: 3 (최근 30일)
Johan Reinink
Johan Reinink 2015년 11월 6일
댓글: Edric Ellis 2015년 11월 6일
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
Edric Ellis
Edric Ellis 2015년 11월 6일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by