Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

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

Accedi per commentare.

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