Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...


Codeblock
titleSubmission of a job
blogin> sbatch myjobscipt.slurm
Submitted batch job 8028673
blogin> ls slurm-8028673.out
slurm-8028673.out

The examples for slurm job scripts, e.g. myjobscipt.slurm, that cover the setup

  • n nodes,
  • 1 OpenMP code running.

    Using mpirun

    Using mpirun the pinning is controlled by the MPI library. Pinning by slurm you need to switch off by adding export SLURM_CPU_BIND=none.

    MPI only

    Codeblock
    titleMPI, full node
    #!/bin/bash
    #SBATCH --nodes=2
    #SBATCH --partition=standard96:test
    module load impi/2019.5
    export SLURM_CPU_BIND=none
    mpirun -ppn 96 ./hello.bin

    Binding with OpenMPI

    When using OpenMPI, binding is controlled using the –-bind-to parameter. To bind processes to cores, use --bind-to core. Possible other values can be found in the man page.

    ...