Path: news.mathworks.com!not-for-mail
From: "Prashanth Kumar " <prashanth.chinta@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Force 100% CPU usage
Date: Tue, 3 Nov 2009 18:36:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 33
Message-ID: <hcpt6i$r1h$1@fred.mathworks.com>
References: <h06dov$egu$1@fred.mathworks.com> <h0ckgo$1mn$1@fred.mathworks.com>
Reply-To: "Prashanth Kumar " <prashanth.chinta@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257273362 27697 172.30.248.37 (3 Nov 2009 18:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 3 Nov 2009 18:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 647858
Xref: news.mathworks.com comp.soft-sys.matlab:582126


"Bobby Cheng" <bcheng@mathworks.com> wrote in message <h0ckgo$1mn$1@fred.mathworks.com>...
> That depends on what your application is doing. I sincerely hope that 
> spinning the cores 100% is not the only goal here. I hope you just want the 
> MATLAB program runs faster.
> 
> Have you profile your code? Do you know where the bottle neck is?
> 
> If the bottleneck happens to be parallelizedable, or you expect it to be 
> able to be parallelized, please contact our supoort and let us know. These 
> are invaluable feedback we like to hear everyday.
> 
> Asking a general statement like your post makes this very difficult to give 
> any useful answer. Without knowing specific problems, I cannot say if the 
> problem would benefit from using multicore.
> 
> Do you have any particular set of functions in mind?
> 
> ---Bob.
> 
> "Richard Underwood" <Richard.Underwood@hotmail.com> wrote in message 
> news:h06dov$egu$1@fred.mathworks.com...
> >I have some engineers running batch files on Windows XP 32bit, but they are 
> >only taking up 25% of the Quad core processor.  Is there a way to force 
> >MatLAB to use up 100% of the CPU?
> >
> > Could this be a code problem within the batch files? 
> 

Dear Bobby Cheng,
I have the similar problem. I first invoked(on intel  xeon quadcore processor) 'matlabpool 4' than it showed that it has connected to 4 labs on a default 'local' config. Than i run simple program where i used 'parfor' loop. But the cpu's are not utilized at their full strength. Only 50% to 60% of cpu strength has been utilized? Why's this so? Is this a problem of licenses? How can we get 100% cpu usage for faster computation.

Thank you 
Prashanth