Progress monitor (progress bar) that works with parfor

Versión (2,21 KB) por Jeremy
Displays the percentage of parfor iterations which have completed.
10,4K descargas
Actualizado 25 oct 2011

Ver licencia

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
parfor_progress(0); % Clean up

Citar como

Jeremy (2024). Progress monitor (progress bar) that works with parfor (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión

It now displays a real (and pretty) progress bar.

Slightly simplified the function.