How can i send a job to the Matlab Cluster and go sleep?

3 vues (au cours des 30 derniers jours)
Konstantin Volodin
Konstantin Volodin le 21 Jan 2012
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.

Réponses (1)

Edric Ellis
Edric Ellis le 23 Jan 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 commentaires
Walter Roberson
Walter Roberson le 23 Jan 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
Edric Ellis le 23 Jan 2012
While that's possible, it's probably not often worthwhile since MDCS worker licences are cheaper than MATLAB+PCT.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Parallel Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by