#!/bin/bash -l
#SBATCH --partition=alcc1
#SBATCH -o __runDir__/__postJobName__.%j.%N.out
#SBATCH -D __runDir__
#SBATCH -J __postJobName__
#SBATCH --ntasks=1
#SBATCH --mem=5G
#SBATCH --mail-type=FAIL
#SBATCH --mail-user=christoph.knote@med.uni-augsburg.de
#SBATCH --time=01:30: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
