Skip to content

Using Slurm on Bianca

This page describes how to use Slurm on Bianca.

What is Slurm?

See the general page on Slurm here

What is Bianca?

See the general page on Bianca here

See Slurm troubleshooting how to fix Slurm errors.

sbatch (and interactive) on Bianca

sbatch (and interactive) work the same as on Rackham.

Want to start an interactive job?

See how to start an interactive job on Bianca here

Here it is shown how to submit a job with:

  • command-line Slurm parameters
  • Slurm parameters in the script

sbatch a script with command-line Slurm parameters

The minimal command to use sbatch with command-line Slurm parameters is:

sbatch -A [project_code] [script_filename]

where [project_code] is the project code, and [script_filename] the name of a bash script, for example:

sbatch -A sens2017625 my_script.sh
Forgot your Bianca project?

When login to Bianca's remote desktop environment webpage at https://bianca.uppmax.uu.se is helpful in showing you your Bianca projects:

An example of the Bianca projects for this user

An example of the Bianca projects for this user

What is in the script file?

The script file my_script.sh is a minimal example script. Such a minimal example script could be:

#!/bin/bash
echo "Hello"

Again, what is shown here is a minimal use of sbatch. See the general page on Slurm here.

sbatch a script with Slurm parameters in script

The minimal command to use sbatch with Slurm parameters in the script:

sbatch [script_filename]

where [script_filename] the name of a bash script, for example:

sbatch my_script.sh

The script must contain at least the following lines:

#SBATCH -A [project_code]

where [project_code] is the project code, for example:

#SBATCH -A sens2017625
Forgot your Bianca project?

When login to Bianca's remote desktop environment webpage at https://bianca.uppmax.uu.se is helpful in showing you your Bianca projects:

An example of the Bianca projects for this user

An example of the Bianca projects for this user

A full example script would be:

#!/bin/bash
#SBATCH -A sens2017625
echo "Hello"

Again, what is shown here is a minimal use of sbatch. See the general page on Slurm.

More about slurm on Bianca