#!/bin/bash -l
#SBATCH --partition=alcc1,epyc
#SBATCH -o __runDir__/__mainJobName__.%j.%N.out
#SBATCH -D __runDir__
#SBATCH -J __mainJobName__
#SBATCH --nodes=2
#SBATCH --ntasks-per-node=28
#SBATCH --mem-per-cpu=2000
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=christoph.knote@med.uni-augsburg.de
#SBATCH --time=08:00:00

#
# variable $MACHINEFILE just holds the filename where acquired
# nodes/cores names are written. e.g.
#
MACHINEFILE=__runDir__/slurm.hosts

#
# Generate Machinefile for openmpi such that hosts are in the same
# order as if run via srun
#
srun hostname -s | sort -n > $MACHINEFILE
