服务器作业提交变化
马祖驹
2022.10.29
假设原来提交作业的脚本如下:
#!/bin/bash
#SBATCH -n 56
#SBATCH -N 1
echo "Starting job $SLURM_JOB_ID at " `date` >>log
echo "SLURM_SUBMIT_DIR is $SLURM_SUBMIT_DIR" >>log
echo "Running on nodes: $SLURM_NODELIST" >>log
module load intel
module load VASP
ulimit -s unlimited
mpirun -np 56 vasp_std >log
修改后脚本如下:(以上脚本中的黑色字体不变)
#!/bin/bash
#SBATCH --exclusive
#SBATCH -p compute
#SBATCH -N 1
echo "Starting job $SLURM_JOB_ID at " `date` >>log
echo "SLURM_SUBMIT_DIR is $SLURM_SUBMIT_DIR" >>log
echo "Running on nodes: $SLURM_NODELIST" >>log
module load intel
module load VASP
ulimit -s unlimited
mpirun vasp_std >log
简而言之:
1. 删除#SBATCH -n 56
2. 添加:
#SBATCH --exclusive
#SBATCH -p compute
3. 修改:mpirun -np 56 vasp_std >log为:mpirun vasp_std >log
注意:脚本中所有mpirun -np 56 vasp_std都要删除“-np 56”