编辑代码

#!/bin/bash  
#SBATCH -o hello.%j.out  
#SBATCH -e hello.%j.err
#SBATCH -J hello
#SBATCH -A free
#SBATCH -p freecpuQ  
#SBATCH -q normal
#SBATCH --nodes=1  
#SBATCH --ntasks-per-node=2  
srun hostname | sort > hostfile.txt  
source /public/software/intel/intel2019/bin/iccvars.sh intel64  
mpirun -machinefile=./hostfile.txt -np $SLURM_NTASKS ./helloworld