-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlionfish_number.sh
20 lines (17 loc) · 982 Bytes
/
lionfish_number.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Bash script used to run the Lionfish source model on HPC computer (5 nodes 100 CPUs)
#To Run use command: sbatch Cope_ERGM_Bash.shn
#SBATCH -J Number_LF # Name of the job
#SBATCH -o /home/jselwyn/Lion/Lion_number.out # Name of file that will have program output
#SBATCH -e /home/jselwyn/Lion/Lion_number.err # Name of the file that will have job errors, if any
#SBATCH -N 5 # Number of nodes ( the normal cluster partion has 22 total )
#SBATCH -n 100 # Number of cores ( my test allocated 2 per node )
#SBATCH -p normal # Partition
# (see available partitions and their number of nodes with sinfo --long -Node command )
#SBATCH -t 4-00:00:00 #Set time limit
#SBATCH --mail-user=
#SBATCH --mail-type=begin #email when job starts
#SBATCH --mail-type=end #email when job ends
module load openmpi
module load R/openmpi/intel/3.2.2
mpirun -np 1 R CMD BATCH /home/jselwyn/Lion/lionfish_number.R