MATLAB Answers

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

2 ビュー (過去 30 日間)
MRC
MRC 2014 年 8 月 26 日
コメント済み: Greg 2014 年 10 月 17 日
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

採用された回答

Friedrich
Friedrich 2014 年 8 月 26 日
Hi,
the rule of thumb is to use one worker per pyhsical core. This is also stated here.
  3 件のコメント
Greg
Greg 2014 年 10 月 17 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by