ParforProgress class
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:
인용 양식
Daniel Golden (2024). ParforProgress class (https://github.com/dgolden1/ParforProgress), GitHub. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- Parallel Computing > MATLAB Parallel Server >
- Parallel Computing > Parallel Computing Toolbox > Parallel for-Loops (parfor) >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.2.0.0 | Correct description of algorithm |
|
|
1.0.0.0 |
|