Parallel computing with MDCS

2 views (last 30 days)
Miltos
Miltos on 7 Dec 2012
I have some problems with MDCS
After importing the appropriate Configuration for a third-party scheduler, using findResource, defining job and task, and submitting the job, I cannot read or retrieve output.
Specifically:
- working on the remote directory - from where I submitted the job - getAllOutputArguments(job) returns an empty cell array 1-0. Moreover, when I scp all files from this remote directory to my local directory and I try to read the existing .mat files in a MATLAB session at my laptop (MacBook Pro) I get the error message
- to make things worse when I start a new matlab session at the remote directory and I use findJob to retrieve the job I get the message <Undefined variable or function >
Can anyone help?
Thanks in advance
Miltos
  1 Comment
Miltos
Miltos on 14 Dec 2012
I think I found what was happening after lots of trial-and-error!
Apparently job.PathDependencies needed the full path /home/username/filename not just ~/filename (that I was using)

Sign in to comment.

Accepted Answer

Jason Ross
Jason Ross on 7 Dec 2012
What is the job state? Is it still running? You can use the waitForState(job, finished) to wait for the job to complete running, and job.State to get the current state of the job.
Can you validate the cluster successfully using the imported profile? (Parallel menu, configurations, and validate).
  10 Comments
Miltos
Miltos on 14 Dec 2012
Edited: Miltos on 14 Dec 2012
I think I found what was happening after lots of trial-and-error!
Apparently job.PathDependencies needed the full path /home/username/filename not just ~/filename
When I run the trivial code I entered the pathDependencies directly from the Command Window and (for some unknown reason to me!) I added it with the full path, while in the script for my code I had job.PathDependencies={'~/filename'}.
Of course, when I was running the code from my laptop or the cluster login node, the script was not using job.PathDependencies and so it was running with no problems!
Conundrum solved!
Many thanks Jason for your help
Jason Ross
Jason Ross on 14 Dec 2012
No problem, glad you were able to get it to work!

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Parallel Server in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!