Maximum number of workers in a parallel loop (local cluster) with Matlab R2014a?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MRC
el 26 de Ag. de 2014
Comentada: Greg
el 17 de Oct. de 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
0 comentarios
Respuesta aceptada
Friedrich
el 26 de Ag. de 2014
Hi,
3 comentarios
Friedrich
el 26 de Ag. de 2014
You can use more, but if you do its likely that it does not speed things up anymore because your system does not have any futher computational ressources.
Simply try it out. Run with 4 workers and do the same with 8 and see what happens.
Greg
el 17 de Oct. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Parallel for-Loops (parfor) 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!