-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathHBTjob_mpi.slurm
26 lines (21 loc) · 991 Bytes
/
HBTjob_mpi.slurm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#SBATCH --job-name=PMO3000 # 作业名
#SBATCH --no-requeue
#SBATCH --partition=debug # cpu 队列
#SBATCH --ntasks=1920 # 32 nodes
#SBATCH --ntasks-per-node=60 # 每节点核数
#SBATCH --output=logs/%x.%j
#SBATCH --error=logs/%x.%j
#ls /public/home/jiaxinhan/PMO3000/simu/snapdir_*
#ls /public/home/liming/data/Simu_n3072_b500_pl13/snapdir_* -d
ulimit -s unlimited
module load mpi/intelmpi compiler/intel mathlib/gsl mathlib/hdf5
#~ source /etc/profile.d/modules.csh
# by default, openmp is not enabled in the MPI version of HBT+. If you want to enable it, uncomment the openmp flags in Makefile.inc and rebuild.
# export OMP_NUM_THREADS=20
# specify the first and last snapshot to process. useful for restarting from a specific snapshot. if not specified, then snapstart=0 and snapend=MaxSnapshotIndex.
snapstart=62
snapend=63
NP=$SLURM_NTASKS
echo $NP "tasks"
mpirun -np $NP ./HBTi8 configs/${SLURM_JOB_NAME}.conf $snapstart $snapend