Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: parallel computing toolbox without distributive computing toolbox
Date: Tue, 29 Sep 2009 13:45:17 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 50
Message-ID: <h9t31d$o1b$1@fred.mathworks.com>
References: <h9r4tv$7o6$1@fred.mathworks.com> <h9rmgg$p9b$1@fred.mathworks.com> <h9rvj4$pnd$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1254231917 24619 172.30.248.38 (29 Sep 2009 13:45:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 29 Sep 2009 13:45:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869084
Xref: news.mathworks.com comp.soft-sys.matlab:573668


Correct.  parfor identifies if a MATLAB Pool is running.  If it is, we leverage the Pool.  If not, then the parfor runs very similar to the for loop.  This allows you to convert your for to a parfor and still give it to someone who doesn't have PCT.

Having PCT installed isn't the same as being licensed.  Everyone can install PCT locally on the Windows machine (for example), but the flexLM might only allow 3 people to use it at the same time.  The message

   Maximum number of users for Distrib_Computing_Toolbox reached

cetainly seems to indiciate that more people are trying to use it then are licensed for.  I would suggest speakin with your Sys Admin to determine how many licenses you have.  S/he might also be able to indicate who the current users are.

Raymond

"Sig Du" <dusigh@hotmail.com> wrote in message <h9rvj4$pnd$1@fred.mathworks.com>...
> Raymond,
> 
> Thanks for your reply! When you said "Functions like parfor are built into the language", you mean that this function can stand alone or that it can automatically judge the situation and do parallel computing? I think maybe you meant the former, because if I don't start matlab pool, then parfor is acting just like for, right?
> 
> The strange thing is that we do have the parallel computing toolbox installed. Doesn't that mean we should have license for that toolbox? I don't think it was because there are too many users here, as whenever I tried it, I got the same msg.
> 
> Thanks again!
> Sig
> 
> "Raymond Norris" <raymond.norris@mathworks.com> wrote in message <h9rmgg$p9b$1@fred.mathworks.com>...
> > Hi Sig,
> > 
> > Let me clarify one thing, there are two products: The Parallel Computing Toolbox (client side) and the MATLAB Distributed Computing Server (server side).  Functions like parfor are built into the language.  Others, like matlabpool, batch, and spmd require PCT.  The PCT functionality allows you to submit jobs serviced by MDCS.
> > 
> > The License Manager error is stating that all the PCT licenses have been checked out.  Without a PCT license, you can't start run jobs on the cluster.
> > 
> > Let me know if this helps. 
> > 
> > Raymond
> > 
> > "Sig Du" <dusigh@hotmail.com> wrote in message <h9r4tv$7o6$1@fred.mathworks.com>...
> > > Hi,
> > > 
> > > Is it true that the parallel computing toolbox won't work if the distributive computing toolbox has not been installed? Because then if I type in 'matlabpool', I received the following err msg:
> > > "  License checkout failed.
> > > License Manager Error -4
> > > Maximum number of users for Distrib_Computing_Toolbox reached. 
> > > Try again later. 
> > > To see a list of current users use the lmstat utility or contact your License Administrator.
> > > 
> > > Troubleshoot this issue by visiting: 
> > > http://www.mathworks.com/support/lme/R2008b/4
> > > 
> > > Diagnostic Information:
> > > Feature: Distrib_Computing_Toolbox 
> > > License path: /myhome/.matlab/R2008b_licenses:/opt/stow/matlab-r2008b/licenses/license.dat:/opt/stow/matlab-r2008b/licenses/network.lic: 
> > > FLEXnet Licensing error: -4,132."
> > > 
> > > So it failed to start matlabpool when Distributive Computing Toolbox is missing. And we know that if matlabpool is not working, then parfor loops will be just the same as serial for loops. I also got similar err when I tried with 'findResource' or 'pmode'. They are not working even on a local multi-core PC, not to mention a cluster system. Does this mean, without Distributive Computing Toolbox,  parallel computing toolbox is useless?