ParforProgress class

버전 1.2.0.0 (3.71 KB) 작성자: Daniel Golden
Matlab class to track iterations within a parfor loop
다운로드 수: 361
업데이트 날짜: 2015/8/17

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:

http://www.mathworks.com/matlabcentral/fileexchange/32101-progress-monitor--progress-bar--that-works-with-parfor

인용 양식

Daniel Golden (2024). ParforProgress class (https://github.com/dgolden1/ParforProgress), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 MATLAB Parallel Server에 대해 자세히 알아보기
태그 태그 추가

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

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.