More Slurm Options

  • To request a specific amount of memory per node:
    • Ex: --mem=64G

Units are given with a suffix (K, M, G, or T). If no unit is given, megabytes is assumed.

Other options are available at https://slurm.schedmd.com/sbatch.html

For more information, see the RC tutorial Using SLURM from a Terminal.

Tip: if you have a Jupyter notebook file (.ipynb) that you would like to run using a Slurm script, first convert it to a .py file using the following command (make sure you are in the directory that contains the file):

jupyter nbconvert --to python file_name.ipynb

Previous
Next
RC Logo © 2025 The Rector and Visitors of the University of Virginia