Matlab class to track iterations within a parfor loop
Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
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:
Citar como
Daniel Golden (2026). ParforProgress class (https://github.com/dgolden1/ParforProgress), GitHub. Recuperado .
Agradecimientos
Inspirado por: Progress monitor (progress bar) that works with parfor
Información general
- Versión 1.2.0.0 (3,71 KB)
-
Ver licencia en GitHub
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
No se pueden descargar versiones que utilicen la rama predeterminada de GitHub
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.2.0.0 | Correct description of algorithm |
||
| 1.0.0.0 |
