Parallel computing toolbox setup
조회 수: 1 (최근 30일)
이전 댓글 표시
Is there any additional configuration need to be done inorder to use parallel computing toolbox in default cluster (local)? I have 12 workers in parallel pool (local ) and automatically create a parallel pool box checked.
With this default cluster I tried to use parfor, it doesn't work (showing busy for long time- no sign of finishing the job).
댓글 수: 0
답변 (1개)
Sourabh Kondapaka
2020년 11월 17일
Hi ,
Can you try out a simpler example and check, as shown below:
tic
n = 1000;
A = 500;
a = zeros(1,n);
%Without parfor
for i = 1:n
a(i) = max(abs(eig(rand(A))));
fprintf('%d %d \n', i, a(i));
end
toc
Elapsed time : 98 seconds
tic
n = 1000;
A = 500;
a = zeros(1,n);
%With parfor
parfor i = 1:n
a(i) = max(abs(eig(rand(A))));
fprintf('%d %d \n', i, a(i));
end
toc
Elapsed time : 57 seconds
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!