#!/bin/bash

#OAR -n "<jobid>-<jobd>"
#OAR -l walltime=<time>
#OAR -l core=<cpuspertask>
#OAR -p "thread_per_core=<taskspercore>"
<turnonconstraint>#OAR -p "<constraint>"
<turnonnodescratch>#OAR -p "<nodescratchfolder>=<nodescratchspace>"
<turnonmailtype>#OAR --notify "<mailtype>"
<turnonemailaddress>#OAR --mail "<emailaddress>"
#OAR -O <outpath>
#OAR -E <errpath>
<turnonexclusiveness>#OAR -l nodes=1,walltime=<time> -p "exclusive='YES'"
<turnonmem>#OAR -l mem=<mem>
<turnonmempercpu>#OAR -l mem_per_core=<mempercpu>

<singularity_module_load>

export SINGULARITY_BINDPATH="<main_path>"

<extra_outer_statements>

<singularity_command>bash <exedir>/<inner_manager>
