Open jan-janssen opened 6 months ago
Here is an example template:
#!/bin/bash #SBATCH --output=time.out #SBATCH --qos=high #SBATCH --error=error.out #SBATCH --account=y22_amsd #SBATCH --job-name={{job_name}} #SBATCH --chdir={{working_directory}} #SBATCH --get-user-env=L {%- if run_time_max %} #SBATCH --time={{run_time_max // 60}} {%- endif %} {%- if memory_max %} #SBATCH --mem={{memory_max}} {%- else %} #SBATCH --mem=0 {%- endif %} {%- if cores < 128 %} #SBATCH --ntasks-per-node={{cores}} {%- else %} #SBATCH --ntasks-per-node=128 {%- endif %} #SBATCH --nodes={{ (cores/128)|round(0, 'ceil')|int }} {{command}}
Here is an example template: