Matlab class to track iterations within a parfor loop
Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
Class to monitor progress of parfor loop
The parallel workers write to a common file for each iteration and determine the total number of completed iterations by counting the number of lines in the file.
USAGE:
pp = ParforProgress;
parfor kk = 1:100
DO_SOMETHING;
iteration_number = step(pp, kk);
fprintf('Finished iteration %d of %d\n', iteration_number, kk);
end
The numbers may not go exactly in order depending on the order in which the parallel workers finish, but they'll be close enough so you'll get the idea of where you are.
The technique of using a single file to store the iteration information was inspired
by this file exchange utility:
Cita come
Daniel Golden (2026). ParforProgress class (https://github.com/dgolden1/ParforProgress), GitHub. Recuperato .
Riconoscimenti
Ispirato da: Progress monitor (progress bar) that works with parfor
Informazioni generali
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
Le versioni che utilizzano il ramo predefinito di GitHub non possono essere scaricate
| Versione | Pubblicato | Note della release | Action |
|---|---|---|---|
| 1.2.0.0 | Correct description of algorithm |
||
| 1.0.0.0 |
