tomwer.core.settings.SlurmSettings#

class tomwer.core.settings.SlurmSettings#

Default Slurm cluster configuration.

ACT_AS_LOGIN_SHELL: bool = False#

Whether to act as a login shell when executing sbatch commands. This is the ‘-l’ option

DEFAULT_WALLTIME = '01:00:00'#

Default walltime for the job (HH:MM:SS).

MEMORY_PER_WORKER = 128#

Amount of memory per worker (in GB).

MODULES_TO_LOAD = ('tomotools/stable',)#

Tuple of modules to load.

N_CORES_PER_TASK = 16#

Number of CPUs per worker.

N_GPUS_PER_WORKER = 1#

Number of GPUs per worker.

N_JOBS = 1#

Number of jobs to split the task into.

N_TASKS = 1#

Number of workers.

PARTITION = 'gpu'#

Queue or partition to use.

PROJECT_NAME = 'tomwer_{scan}_-_{process}_-_{info}'#

Template for the Slurm cluster project name. Placeholders {scan}, {process}, and {info} will be formatted.

PYTHON_VENV = None#

Path to the Python virtual environment activation script. Useful if compute nodes use a different environment.

SBATCH_EXTRA_PARAMS = {'export': 'ALL'}#