parfor using
Mostra commenti meno recenti
Hi everybody, i have a question about parfor using. I tried a classical example for parfor on my PC but i couldn't get gainly results. How ?
nmax=1000;
y = zeros(nmax,1);
tic
parfor n = 1:nmax
z = randn(n);
y(n) = max(svd(z));
end
toc
Results:
(nmax, pool size, time)
(500, 0, 12.51) (500, 2, 8.71) (500, 4, 5.16) That's OK.
(750, 0, 46.03) (750, 2, 38.65) (750, 4, 30.32) Maybe OK.
(1000, 0, 141.40) (1000, 2, 156.19) (1000, 4, 174.81) Why ?
Thanks for replies.
Risposta accettata
Più risposte (1)
N. Yildirim
il 17 Mar 2012
0 voti
Categorie
Scopri di più su App Building in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!