How can i send a job to the Matlab Cluster and go sleep?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Edric Ellis
2012년 1월 23일
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
Walter Roberson
2012년 1월 23일
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
2012년 1월 23일
While that's possible, it's probably not often worthwhile since MDCS worker licences are cheaper than MATLAB+PCT.
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!