Parallel computing toolbox setup

1 visualización (últimos 30 días)
Rafi Mohammad
Rafi Mohammad el 12 de Nov. de 2020
Respondida: Sourabh Kondapaka el 17 de Nov. de 2020
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).

Respuestas (1)

Sourabh Kondapaka
Sourabh Kondapaka el 17 de Nov. de 2020
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

Categorías

Más información sobre MATLAB Parallel Server en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by