Minimize MDCS Data Transfer
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Philip
am 27 Okt. 2014
Kommentiert: Philip
am 31 Okt. 2014
I am using MDCS on a Linux cluster. I repeatedly for a parfor loop in the following spirit:
while
parfor i=1:n
x(i) = a(i,:)*b;
end
end
Here the vector b is used on all cores, every time I call parfor. However, I believe each time I call parfor, b is being sent to all the cores, which slows down the code. How can I repeatedly use parfor with constant data such that I do not have to keep resending the same data each time I call a parfor loop? Thank you.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Parallel Server finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!