如何使用 Slurm 的 sbatch 命令将作业提交到特定节点?

Ami*_*mir 19 command-line cluster slurm

我们的节点在我们的集群中被命名为node001...。node0xx我想知道,是否可以使用 Slurm 的sbatch命令将作业提交到特定节点?如果是这样,有人可以为此发布示例代码吗?

Ami*_*mir 29

我想到了。您需要使用-w node0xx--nodelist=node0xx

  • 您还需要提供分区,以免出现“请求的节点不在该分区中”错误,因为某些节点可能位于多个分区中(在我的例子中,我们有一个节点位于 fat 和 fat_short 分区中)。 (2认同)