Thread Subject: MatlabPool Job on cluster

Subject: MatlabPool Job on cluster

From: Meng Han

Date: 23 Sep, 2009 18:03:03

Message: 1 of 3

Hi, I submitted a matlabpool job to a local cluster. if i add following lines:

waitForState(j, 'finished')
r = getAllOutputArguments(j)

my local matlab will wait until job finishes, and everyting is fine. my problem is, after submission, can i exit my local matlab session while the job is still running on the cluster?

i tried to remove these two lines

waitForState(j, 'finished')
r = getAllOutputArguments(j)

but i can not get any result from local matlab, and ALSO, there is no result sent to my local folder (the folder specified in scheduler's DataLocation property) or remote folder (folder specified in remoteDataLocation). More exactly, when the job is submitted, a folder named "Job123" is created under my local DataLocation folder, but later this "Job123" folder is removed after the job is over.

Please help, thanks!

Subject: MatlabPool Job on cluster

From: Meng Han

Date: 23 Sep, 2009 18:10:26

Message: 2 of 3

sorry, a little typo:
i sent a matlabpool job to a "cluster" not a "local cluster"

Subject: MatlabPool Job on cluster

From: Raymond Norris

Date: 25 Sep, 2009 04:58:01

Message: 3 of 3

Hi Meng,

Once the job is submitted to the cluster, you can quit MATLAB. To ge the results later, try this

   sched = findResource();
   job = sched.createJob('tag','Meng')
   job.createTask(@fcn,...)
   job.submit()
   exit % quit MATLAB

   % Restart MATLAB
   sched = findResource();
   job = sched.findJob('tag','Meng');
   out = job.getAllOutputArguments();

Job files are deleted when (a) you close a MATLAB Pool or (b) you destroy a job (i.e. job.destroy())

Let me know if you have any other questions.

Raymond

"Meng Han" <m7han.milan@gmail.com> wrote in message <h9dnsn$nm5$1@fred.mathworks.com>...
> Hi, I submitted a matlabpool job to a local cluster. if i add following lines:
>
> waitForState(j, 'finished')
> r = getAllOutputArguments(j)
>
> my local matlab will wait until job finishes, and everyting is fine. my problem is, after submission, can i exit my local matlab session while the job is still running on the cluster?
>
> i tried to remove these two lines
>
> waitForState(j, 'finished')
> r = getAllOutputArguments(j)
>
> but i can not get any result from local matlab, and ALSO, there is no result sent to my local folder (the folder specified in scheduler's DataLocation property) or remote folder (folder specified in remoteDataLocation). More exactly, when the job is submitted, a folder named "Job123" is created under my local DataLocation folder, but later this "Job123" folder is removed after the job is over.
>
> Please help, thanks!

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
cluster Sprinceana 23 Sep, 2009 14:29:15
matlabpool Sprinceana 23 Sep, 2009 14:29:15
rssFeed for this Thread

Contact us at files@mathworks.com