Thread Subject: parallel computing toolbox without distributive computing toolbox

Subject: parallel computing toolbox without distributive computing toolbox

From: Sig Du

Date: 28 Sep, 2009 20:05:19

Message: 1 of 8

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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Raymond Norris

Date: 29 Sep, 2009 01:05:20

Message: 2 of 8

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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Sig Du

Date: 29 Sep, 2009 03:40:20

Message: 3 of 8

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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Sig Du

Date: 29 Sep, 2009 04:15:18

Message: 4 of 8

Hi Raymond,

Another question I would like to ask: if I don't have MDCS, but can make the PCT work, can I get my parallel computation matlab job run on cluster with Torque? Since you said MDCS allows me to submit the job, but Torque can do this job too. I guess Torque can be a substitute for MDCS, right?

thanks,
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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Raymond Norris

Date: 29 Sep, 2009 13:45:17

Message: 5 of 8

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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Raymond Norris

Date: 29 Sep, 2009 13:52:01

Message: 6 of 8

MDCS doesn't allow you to submit MATLAB jobs -- MDCS is (headless) MATLAB. We provide a scheduler, MathWorks Job Manager, that can submit MATLAB jobs to MDCS. The Job Manager can be substituted by TORQUE.

I think you might be asking the following question: Can you submit a MATLAB job via PCT to TORQUE that starts up full MATLAB rather than MDCS. PCT is written to instruct TORQUE to startup MDCS, not MATLAB (there is a slight difference between full MATLAB mode and MDCS). And truthfully, you don't want to be useing full MATLAB licenses to run on the cluster. It's more economical to run MDCS than full MATLAB on the cluster.

Tell me if this answers your questions.

Raymond

"Sig Du" <dusigh@hotmail.com> wrote in message <h9s1km$5vh$1@fred.mathworks.com>...
> Hi Raymond,
>
> Another question I would like to ask: if I don't have MDCS, but can make the PCT work, can I get my parallel computation matlab job run on cluster with Torque? Since you said MDCS allows me to submit the job, but Torque can do this job too. I guess Torque can be a substitute for MDCS, right?
>
> thanks,
> 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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Sig Du

Date: 30 Sep, 2009 14:07:17

Message: 7 of 8

Raymond,

Thanks a lot. Your answer is very helpful. I've aske our admin to work on the license problem. One final thing to confirm: If I write some code with 'parfor', and I have Torque on the cluster. Suppose I request multiple nodes through Torque and submit this code to cluster without first running the 'matlabpool' command, my code won't automatically run parallelly, is that right?

thanks,
Sig

"Raymond Norris" <raymond.norris@mathworks.com> wrote in message <h9t3e1$mv5$1@fred.mathworks.com>...
> MDCS doesn't allow you to submit MATLAB jobs -- MDCS is (headless) MATLAB. We provide a scheduler, MathWorks Job Manager, that can submit MATLAB jobs to MDCS. The Job Manager can be substituted by TORQUE.
>
> I think you might be asking the following question: Can you submit a MATLAB job via PCT to TORQUE that starts up full MATLAB rather than MDCS. PCT is written to instruct TORQUE to startup MDCS, not MATLAB (there is a slight difference between full MATLAB mode and MDCS). And truthfully, you don't want to be useing full MATLAB licenses to run on the cluster. It's more economical to run MDCS than full MATLAB on the cluster.
>
> Tell me if this answers your questions.
>
> Raymond
>
> "Sig Du" <dusigh@hotmail.com> wrote in message <h9s1km$5vh$1@fred.mathworks.com>...
> > Hi Raymond,
> >
> > Another question I would like to ask: if I don't have MDCS, but can make the PCT work, can I get my parallel computation matlab job run on cluster with Torque? Since you said MDCS allows me to submit the job, but Torque can do this job too. I guess Torque can be a substitute for MDCS, right?
> >
> > thanks,
> > 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?

Subject: parallel computing toolbox without distributive computing toolbox

From: Raymond Norris

Date: 1 Oct, 2009 13:17:09

Message: 8 of 8

There are two ways to run a MATLAB Pool over TORQUE.

1. Interactively. That is, from the MATLAB prompt you run

   >> matlabpool open torque_config 4

Using a (made up) configuration called torque_config, you start 4 Workers on the cluster. Now if you run a parfor, it will submit the tasks to TORQUE.

2. Batch. By using the batch() command, you can either run your code serially on one Worker or pass as an argument the size of the MATLAB Pool to startup for you when you submit the job.

   >> job = batch('myscript','Matlabpool',4)

Raymond

"Sig Du" <dusigh@hotmail.com> wrote in message <h9voml$ira$1@fred.mathworks.com>...
> Raymond,
>
> Thanks a lot. Your answer is very helpful. I've aske our admin to work on the license problem. One final thing to confirm: If I write some code with 'parfor', and I have Torque on the cluster. Suppose I request multiple nodes through Torque and submit this code to cluster without first running the 'matlabpool' command, my code won't automatically run parallelly, is that right?
>
> thanks,
> Sig
>
> "Raymond Norris" <raymond.norris@mathworks.com> wrote in message <h9t3e1$mv5$1@fred.mathworks.com>...
> > MDCS doesn't allow you to submit MATLAB jobs -- MDCS is (headless) MATLAB. We provide a scheduler, MathWorks Job Manager, that can submit MATLAB jobs to MDCS. The Job Manager can be substituted by TORQUE.
> >
> > I think you might be asking the following question: Can you submit a MATLAB job via PCT to TORQUE that starts up full MATLAB rather than MDCS. PCT is written to instruct TORQUE to startup MDCS, not MATLAB (there is a slight difference between full MATLAB mode and MDCS). And truthfully, you don't want to be useing full MATLAB licenses to run on the cluster. It's more economical to run MDCS than full MATLAB on the cluster.
> >
> > Tell me if this answers your questions.
> >
> > Raymond
> >
> > "Sig Du" <dusigh@hotmail.com> wrote in message <h9s1km$5vh$1@fred.mathworks.com>...
> > > Hi Raymond,
> > >
> > > Another question I would like to ask: if I don't have MDCS, but can make the PCT work, can I get my parallel computation matlab job run on cluster with Torque? Since you said MDCS allows me to submit the job, but Torque can do this job too. I guess Torque can be a substitute for MDCS, right?
> > >
> > > thanks,
> > > 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?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
distributive Sig Du 28 Sep, 2009 16:09:04
parallel Sig Du 28 Sep, 2009 16:09:03
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com