Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • To work interactively on a compute node use salloc.
    You can use all options (more CPU, RAM, time, partition, qos, ...) described in the next section.
    To enable working with graphical interfaces (X forwarding) add the option --x11 .
  • Job scripts are submitted via sbatch
  • You can ssh to a node where a job of yours is running, if (and only if) you have a valid ssh-key pair. (e.g. on a login node: ssh-keygen -t ed25519;  ssh-copy-id albedo1)
    Make sure your key is secured with a password!


Warning

 Slurm keeps some environment variables that are set when submitting your job, but changes others. This might break your environment.

To be on the safe side:

When using environment modules in your job script (or interactive job), run module purge to unload all loaded modules before you load all modules required in your job!


Specifying job resources

Job resources are defined at the header of your job script (or as command line arguments for sbatch or salloc). A full list see https://slurm.schedmd.com/sbatch.html#SECTION_OPTIONS. Here is a list of the most common ones:

...