How to follow progress of a parfor-loop?

182 vues (au cours des 30 derniers jours)
Mr M.
Mr M. le 18 Déc 2017
Commenté : Walter Roberson le 25 Juil 2018
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 commentaire
Adam
Adam le 18 Déc 2017
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.

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 18 Déc 2017
Adam has given one example already: Take a look into the FileExchange. You find many corresponding solution if you search for "parfor":

Plus de réponses (1)

Stuart McGarrity
Stuart McGarrity le 25 Juil 2018
Modifié(e) : Stuart McGarrity le 25 Juil 2018
You can implement this with a data queue. See a waitbar example here: https://www.mathworks.com/help/distcomp/send.html#bvmkkgt

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by