Files
IMB-Benchmarking-tools/templates/multinode.template
Erik Fabrizzi da15851c5c some comment
2025-10-31 12:33:27 +01:00

45 lines
1.8 KiB
Bash

#!/bin/bash -l
#SBATCH --job-name={job_name}_{n_procs}
#SBATCH --output={output_dir}{job_name}_{n_procs}.out
#SBATCH --error={err_dir}{job_name}_{n_procs}.err
#SBATCH --nodes={n_nodes}
#SBATCH --nodelist=f01[01-64]
#SBATCH --time=00:30:00
#SBATCH --export=NONE
# Switch Help Table
# SwitchName=fswibl01 Level=0 LinkSpeed=1 Nodes=f01[01-64]
# SwitchName=fswibl02 Level=0 LinkSpeed=1 Nodes=f02[01-64]
# SwitchName=fswibl03 Level=0 LinkSpeed=1 Nodes=f03[01-64]
# SwitchName=fswibl04 Level=0 LinkSpeed=1 Nodes=f04[01-64]
# SwitchName=fswibl05 Level=0 LinkSpeed=1 Nodes=f05[01-64]
# SwitchName=fswibl06 Level=0 LinkSpeed=1 Nodes=f06[01-64]
# SwitchName=fswibl07 Level=0 LinkSpeed=1 Nodes=f01[65-88],f02[65-88]
# SwitchName=fswibl08 Level=0 LinkSpeed=1 Nodes=f03[65-88],f04[65-88],fritz[1-2]
# SwitchName=fswibl09 Level=0 LinkSpeed=1 Nodes=f05[65-88],f06[65-88],fritz[3-4],fviz1
# SwitchName=fswibl10 Level=0 LinkSpeed=1 Nodes=f07[01-64]
# SwitchName=fswibl11 Level=0 LinkSpeed=1 Nodes=f08[01-64]
# SwitchName=fswibl12 Level=0 LinkSpeed=1 Nodes=f09[01-64]
# SwitchName=fswibl13 Level=0 LinkSpeed=1 Nodes=f10[01-64]
unset SLURM_EXPORT_ENV
module load intel intelmpi
# Enable tuned collectives
export I_MPI_TUNING=on
export I_MPI_TUNING_MODE=auto # or 'collectives'
# Options: 0=auto, 1=recursive doubling, 2=ring, 3=binomial tree, 4=scatter-allgather
export I_MPI_COLL_ALLGATHER=2
export I_MPI_COLL_GATHER=2
OUTPUT_FILENAME="{data_dir}/{job_name}_$SLURM_JOB_ID.dat"
echo "# CREATION_TIME : {time_stamp}" > $OUTPUT_FILENAME
echo "# N_NODES : {n_nodes}" >> $OUTPUT_FILENAME
echo "# OFF_CACHE_FLAG : {off_cache_flag}">> $OUTPUT_FILENAME
srun --cpu-freq=2000000-2000000:performance -N {n_nodes} -n{n_procs} {bin} {job_name} -npmin {n_procs} {off_cache_flag} -mem 2 -time 60 >> $OUTPUT_FILENAME