How can I launch a script as an LSF job from the Matlab console?
25 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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.
Instructions for configuring MATLAB Distributed Computing Server for an LSF cluster are here: https://uk.mathworks.com/help/mdce/configure-parallel-computing-products-for-supported-third-party-schedulers-pbs-pro-platform-lsf-torque.html
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.
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cluster Configuration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!