필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Konstantin Volodin
Konstantin Volodin 2012년 1월 21일
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.

답변 (1개)

Edric Ellis
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
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
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 CenterFile Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by