When using spmd, the network communication speed is too slow.
Show older comments
Hello I am testing the distributed arrays using spmd with 14 computers.
The test code is as follows:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
delete(gcp('nocreate'));
c=parcluster;
delete(c.Jobs);
%%
spmd
end
N = 8;
time_parallel = zeros(N,1);
% for nn = 1 : N
for nn = N
tic
spmd
nx = nn;
ny = nn;
NBx = 2*nx+1;
NBy = 2*ny+1;
L = NBx*NBy;
end
spmd
A_ = rand(2*L,2*L,codistributor())+1i*rand(2*L,2*L,codistributor());
[Vp_,Dp_] = eig(A_,'nobalance');
spmdBarrier;
end
time_parallel(nn)=toc
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I monitored the cpu usage of all nodes and the network details of the headnode, and it was as follows.

spmd started at 17:50 and ended at 21:30.
In the graph on the left, I think number 1 is starting parallel pool, and number 2 is an eig function calculation.
How can I reduce the network communication time from 18:00 to 21:30?
Changing the number of workers per node did not change much.
The purple color from 19:30 to 21:30 on the cpu usage graph is due to the monitoring program.
I look forward to hearing from you.
Sincerely
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!