ALBORZ sbatch template for Neumann

Windows users: please make sure to convert the script with dos2unix on the linux machine, and read the article on Linebreaks

job_alborz022020.sh
#!/bin/bash
###################################################################################################
## Queue system requests
 
#SBATCH --job-name ALBORZ		# job name displayed by squeue
#SBATCH --partition big  		# queue in which this is going
#SBATCH --nodes 2	 		# number of nodes
#SBATCH --ntasks-per-node 16            # requested number of cpu slots per node 
#SBATCH --time 001:00:00		# time budget [HHH:MM:SS] 
#SBATCH --mem 120G			# RAM memory allocated to each node
 
#SBATCH --dependency singleton	        # singleton dependency: do not start this job before 
                                        # any other job with the same job name has finished
###################################################################################################
## simulation settings
 
## Simulation root (no / at the end)
WORKING_DIRECTORY="/scratch/tmp/$USER/sim"
 
## How many ALBORZ processes required?
NP_ALBORZ=9
 
## Application.
APPLICATION="/home/vc-a/$USER/location/ALBORZ"
 
 
###################################################################################################
#################### Below here, you likely will not need to change anything ######################
###################################################################################################
# send error messages into stdout stream
exec 2>&1 
 
## Loading required modules
module load openmpi/gcc/64/1.10.1
 
## Debug information
/cluster/apps/utils/bin/slurmProlog.sh 
 
## creating machinefile 
MACHINEFILE="machinefile.$SLURM_JOBID.txt"
srun /bin/hostname > $WORKING_DIRECTORY/$MACHINEFILE
 
## change into working directory
cd $WORKING_DIRECTORY
 
## Startup timestamp
echo "$(date +%Y-%m-%d_%H:%M:%S) Now, running the simulation ...."
 
## Run application 
mpirun -np $NP_ALBORZ -machinefile $WORKING_DIRECTORY/$MACHINEFILE $APPLICATION
 
## Set finished timestamp
echo "$(date +%Y-%m-%d_%H:%M:%S) Finished."
 
## Clean-Up
/cluster/apps/utils/bin/slurmEpilog.sh 
 
echo "done."
guide/neumann/jobscript_alborz.txt · Last modified: 2020/02/07 13:03 by seengel
Back to top
CC Attribution-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0