在Ubuntu系统中设置Slurm可以按照以下步骤操作:
sudo apt update
sudo apt install slurm-llnl
/etc/slurm-llnl/slurm.conf
,配置集群节点和参数。根据实际情况修改以下参数:ControlMachine=master
NodeName=compute-0-[0-1] Procs=4
PartitionName=normal Nodes=compute-0-[0-1] Default=Yes
sudo systemctl start slurmd
sudo systemctl start slurmctld
sinfo
scontrol show nodes
如果能够显示节点信息,说明Slurm已成功设置。
/etc/slurm-llnl/slurm.conf
文件,配置用户权限和账号。根据实际情况添加以下参数:AccountingStorageType=accounting_storage/none
AccountingStoreEvents=NONE
JobAcctGatherType=jobacct_gather/none
sudo systemctl restart slurmd
sudo systemctl restart slurmctld
完成以上步骤后,Slurm集群将在Ubuntu系统中成功设置并运行。