Sie befinden sich im Service: RWTH High Performance Computing (Linux)

Basic Slurm compute batch job

Basic Slurm compute batch job

Kurzinformation

Here you will find a basic example job script for the Slurm batch system and further links for using the system.


Detailinformation

Batch scripts are files that contain the definition of required hardware resources (see #SBATCH lines) and the code you wish to run on an HPC node.

These batch scripts are submitted to Slurm using a unix console with the command sbatch. Using the console is required to submit batch scripts using sbatch.

Basic MPI job script

#!/usr/bin/zsh

### Start of Slurm SBATCH definitions
# ask for eight tasks
#SBATCH --ntasks=8

# Ask for less than 4 GB memory per (cpu) task=MPI rank
#SBATCH --mem-per-cpu=3900M

# Name the job
#SBATCH --job-name=MPI_JOB

# Declare file where the STDOUT/STDERR outputs will be written
#SBATCH --output=output.%J.txt

### end of Slurm SBATCH definitions

### beginning of executable commands
### your program goes here (a.out is an example)
$MPIEXEC $FLAGS_MPI_BATCH ./a.out

​ Zusatzinformation

Basic Slurm doumentation on hpc-wiki.info:

zuletzt geändert am 20.10.2023

Wie hat Ihnen dieser Inhalt geholfen?

Creative Commons Lizenzvertrag
Dieses Werk ist lizenziert unter einer Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland Lizenz