Parallel computing with MDCS

14 visualizaciones (últimos 30 días)
Miltos
Miltos el 7 de Dic. de 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 comentario
Miltos
Miltos el 14 de Dic. de 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)

Iniciar sesión para comentar.

Respuesta aceptada

Jason Ross
Jason Ross el 7 de Dic. de 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 comentarios
Miltos
Miltos el 14 de Dic. de 2012
Editada: Miltos el 14 de Dic. de 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 el 14 de Dic. de 2012
No problem, glad you were able to get it to work!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Parallel Server en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by