Progress monitor (progress bar) that works with parfor
Monitoring the progress of a long-running parfor loop is not straightforward because the workers cannot communicate. This function gets around that limitation by storing the progress in a text file.
Example usage:
N = 100;
parfor_progress(N); % Initialize
parfor i=1:N
pause(rand); % Replace with real code
parfor_progress; % Count
end
parfor_progress(0); % Clean up
Citation pour cette source
Jeremy (2025). Progress monitor (progress bar) that works with parfor (https://www.mathworks.com/matlabcentral/fileexchange/32101-progress-monitor-progress-bar-that-works-with-parfor), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Parallel Computing > Parallel Computing Toolbox > Parallel for-Loops (parfor) >
- Parallel Computing > Parallel Computing Toolbox > Performance Profiling >
Tags
Remerciements
A inspiré : ParforProgress class, parwaitbar, parfor_progressbar_v1, TimedProgressBar, parfor_progressbar, Progress bar for matlab loops (incl. parfor), Sparse Grid Interpolation
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.2.0.0 | It now displays a real (and pretty) progress bar. |
||
1.1.0.0 | Slightly simplified the function. |
||
1.0.0.0 |