How can I run parallel job on a specific node?

7 ビュー (過去 30 日間)
Xingwang Yong
Xingwang Yong 2020 年 12 月 10 日
コメント済み: Xingwang Yong 2020 年 12 月 10 日
I have access to a cluster, which contains several nodes, node01,node02, etc. The administrator has configured the Slurm profile of the cluster. When I run a script, it seems Slurm randomly assign a node for me.
Now, I want to run my program on a specific node, e.g. node01. As I do not have the admin privilege, I can only edit the profile of my own, under the menu Parallel->Manage cluster profile->edit. The only option that maybe related to node selecttion is the last one, i.e. cmd line arg.
Can I add cmd line arg to run my job on a specific node? Or is there any other configuration that non-admin user can edit?

採用された回答

Edric Ellis
Edric Ellis 2020 年 12 月 10 日
Based on this stackexchange answer https://unix.stackexchange.com/questions/443438/how-to-submit-a-job-to-a-specific-node-using-slurms-sbatch-command what you need to do is set the SubmitArguments in the Cluster Profile Manager to
--nodelist=node01
This is mentioned in the SLURM documentation for srun: https://slurm.schedmd.com/srun.html .
  1 件のコメント
Xingwang Yong
Xingwang Yong 2020 年 12 月 10 日
Thank you. It works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCluster Configuration についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by