How can I launch a script as an LSF job from the Matlab console?

조회 수: 25 (최근 30일)
Bill Huff
Bill Huff 2018년 12월 11일
답변: Bill Huff 2018년 12월 14일
Is there a way to launch a matlab script as an LSF bjob on a specified cluster name with specific memory and CPU request settings from the matlab console? Is "batch" the command to do this? If so it seems I need to set up a cluster profile - I'm not sure how to do this or where to find the documentation for it.
Thank you,
Bill

채택된 답변

Edric Ellis
Edric Ellis 2018년 12월 12일
Yes, you can use the batch command to do this. You'll need Parallel Computing Toolbox installed on your desktop MATLAB client, and MATLAB Distributed Computing Server installed on the cluster.
To set up specific options for your batch submission, you should set up SubmitArguments for your cluster object. You can do this either through the "Cluster Profile Manager", or at the command-line. Here's an example, presuming you've already set up your basic profile.
myCluster = parcluster('myLSFProfile');
myCluster.SubmitArguments = '-R rusage[mem=100]';
myJob = batch(myCluster, 'myScriptName');
This will submit myJob to your LSF cluster, to run the script called myScriptName, and it will add the specified SubmitArguments to the bsub command-line.

추가 답변 (1개)

Bill Huff
Bill Huff 2018년 12월 14일
Thank you very much for the reply Edric
I did get a bit stuck on the LSF cluster setup. I think I need someone with a big more CAD / IT expertise than I have to help me with it. I'll start looking for that support and let you know how it goes.
Thank you very much and have a great day,
Bill Huff

카테고리

Help CenterFile Exchange에서 Cluster Configuration에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by