Parallel computing with MDCS

14 visualizzazioni (ultimi 30 giorni)
Miltos
Miltos il 7 Dic 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 Commento
Miltos
Miltos il 14 Dic 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)

Accedi per commentare.

Risposta accettata

Jason Ross
Jason Ross il 7 Dic 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 Commenti
Miltos
Miltos il 14 Dic 2012
Modificato: Miltos il 14 Dic 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 il 14 Dic 2012
No problem, glad you were able to get it to work!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su MATLAB Parallel Server in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by