pyiron / FAQs

General question board for pyiron users
3 stars 0 forks source link

Specify the number of cores per node in pysqa #27

Open jan-janssen opened 6 months ago

jan-janssen commented 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}}