-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslurm.sh
27 lines (22 loc) · 792 Bytes
/
slurm.sh
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
27
#!/bin/bash -l
#
#SBATCH --job-name=ant_colony
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=32
#SBATCH --mem=32GB
#SBATCH --time=0-480:00
#SBATCH -e log_%j.err
#SBATCH -o log_%j.out
# force running on a particular cluster (the Xeon Gold ones) for reproducibility
#SBATCH --constraint=R640
# Slurm job for the CPU (OpenMP/serial) version of the ant colony
# https://research.smp.uq.edu.au/computing/index.php?n=Getafix.HardwareConfiguration
# we should have up to about 192GB of RAM
module load gnu
# write out number of threads
export OMP_NUM_THREADS=${SLURM_CPUS_PER_TASK}
date
# make sure we use /usr/bin/time (GNU time) which supports showing max memory, etc.
/usr/bin/time -v ./cmake-build-release-getafix/ant_colony antconfig_megamap.ini