matlab R2010b on windows server 2008 R2 Xeon 5130 using all cores without parallel specified code
1 view (last 30 days)
Show older comments
Hi, I am running a program including a fminsearch and a fsolve.
The code is NOT written for parallel computing though. I am running the code on tow machines:
Machine A, Matlab R2007a on Windows server 2003 R2 @ Xeon E5410 with 4 cores and 8 threads.
Machine B, Matlab R2010b on Windows server 2008 R2 @ Xeon 5130 with 2 cores and 4 threads.
Wired thing is that on Machine A, one matlab process only use 1 thread, 1/8 of the total cpu usage. But on Machine B, one matlab process use all the 4 threads,100% of the cpu cores are used. But the performance is not improved at all.
Can somebody tell me how to solve the problem on Windows 2008?
0 Comments
Accepted Answer
Walter Roberson
on 1 Dec 2012
Later MATLAB versions are better at automatically parallelizing some kinds of code. This is a built-in functionality that does not use the parallel toolbox.
3 Comments
Walter Roberson
on 1 Dec 2012
There is a MATLAB command line option -singleCompThread that restricts to a single thread, in more modern versions. The earlier versions used http://www.mathworks.com/help/matlab/ref/maxnumcompthreads.html
More Answers (0)
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!