Maximum number of workers in a parallel loop (local cluster) with Matlab R2014a?

4 vues (au cours des 30 derniers jours)
MRC
MRC le 26 Août 2014
Commenté : Greg le 17 Oct 2014
I have a Macbook Pro Intel Core I7; which is the maximum number of workers in a parallel loop (local cluster) with Matlab R2014a? These are the characteristics of my laptop
hw.physicalcpu: 4
hw.logicalcpu: 8

Réponse acceptée

Friedrich
Friedrich le 26 Août 2014
Hi,
the rule of thumb is to use one worker per pyhsical core. This is also stated here.
  3 commentaires
Greg
Greg le 17 Oct 2014
Just wanted to add my modest experimental result
sz = 450;
A = rand(sz,sz,'single');
B = rand(sz,sz,'single');
tic;
parfor k = 1:sz^2
fft2(A.*B);
end
toc;
6 workers - 159 sec.
12 workers - 118 sec.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parallel for-Loops (parfor) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by