Matlab on Microsoft 2008 compute server
Mostra commenti meno recenti
I'm trying to take advantage of a compute server with 4 quad-core processors and 128 GB of RAM running Microsoft Server 2008 (Matlab R2010b). When I try the benchmark routine at the command line, it's very slow:
>>bench
ans =
5.4150 0.0812 0.1598 34.6092 0.4319 0.8718
We have the parallel computing toolbox, and when I try the benchmark routine within a parallel for loop, each individual instance is much faster.
>>matlabpool;
parfor i=1:8;
foo(i,:) = bench;
end;
matlabpool close;
mean(foo)
ans =
0.2253 0.2894 0.2894 0.343 0.4630 0.0292
The code that I'm running normally takes advantage of the two quad-cores that I have in my macPro and is not written using the parallel computing toolbox. Is there any way to get matlab to take advantage of the 4 processors (i.e., 16 cores) by default?
Risposta accettata
Più risposte (1)
Fangjun Jiang
il 19 Ago 2011
0 voti
First of all, run bench a few times in a row till you get stable results. My result of first run of bench is much worse than the second run.
Second, check your settings: menu File->Preferences ... ->General->Multithreading
1 Commento
Brock Kirwan
il 19 Ago 2011
Categorie
Scopri di più su Profile and Improve Performance 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!