How to follow progress of a parfor-loop?

195 ビュー (過去 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 Center および File ExchangeParallel for-Loops (parfor) についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by