How can i send a job to the Matlab Cluster and go sleep?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi.
The question is:
Can i send a job to the Matlab Cluster, wait for a message it was submitted, then close matlab and go for sleep, then open matlab, connects to the cluster and get my results back or chech the status of the job ? Is there an caveeats in file share or something... or i should write my send/get scripts by myself (ftp upload + Matlab Reporting, for example) ?
I ve just trying to understand the right wait it should be done...
Sincerely, Volodin Konstantin.
0 comentarios
Respuestas (1)
Edric Ellis
el 23 de En. de 2012
Yes, you can do this. For example:
sched = findResource(...);
job = createJob( sched, ... );
task = createTask( job, @myFcn, ... );
submit( job );
waitForState( job, 'running' );
% Now you can quit MATLAB, and find the job later
In fact, you do not need to wait for the job to start 'running' - you may quit your client MATLAB after submitting the job.
(Note: this does not work with the local scheduler - in that case you must keep the client running).
2 comentarios
Walter Roberson
el 23 de En. de 2012
In the local scheduler case, you could possibly be running the client under a VNC server, and connect to the VNC server even "locally".
If, that is, your operating system permits you to run a meaningful graphical program (e.g., MATLAB) apart from what is showing on the screen. Easy under Linux, but under Windows would probably require a Windows "PRO" software edition or perhaps Windows Server.
Edric Ellis
el 23 de En. de 2012
While that's possible, it's probably not often worthwhile since MDCS worker licences are cheaper than MATLAB+PCT.
Ver también
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!