How to follow progress of a parfor-loop?

조회 수: 201 (최근 30일)
Mr M.
Mr M. 2017년 12월 18일
댓글: Walter Roberson 2018년 7월 25일
I would like to follow the run on a progress bar of a cycle. In case of simple for-loop is easy, but whatif I use parfor?
  댓글 수: 1
Adam
Adam 2017년 12월 18일
What do you mean by a cycle? If you mean the loop that is actually parallel then a progress bar will not work with this, although there are some on File Exchange that will, though only really if there are sufficiently more iterations than there are cores.
is the one I use for this purpose, though it does lead to a load of warnings in scenarios where previous objects of the class are not properly deleted.

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

채택된 답변

Jan
Jan 2017년 12월 18일
Adam has given one example already: Take a look into the FileExchange. You find many corresponding solution if you search for "parfor":

추가 답변 (1개)

Stuart McGarrity
Stuart McGarrity 2018년 7월 25일
편집: Stuart McGarrity 2018년 7월 25일
You can implement this with a data queue. See a waitbar example here: https://www.mathworks.com/help/distcomp/send.html#bvmkkgt

카테고리

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