Site Tools


howtouseslurm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtouseslurm [2019/05/11 18:58] – created tmatejukhowtouseslurm [2023/08/01 01:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
-You can use slurm in two 'modes'. 
  
-===Batch mode===  +[[howtouseslurm_000|SLURM, batch and interactive mode]]
-Most computation is done with batch mode. We prepare batch script (job). This script contains declaration of resources we require, and launch of computation we would like to run on them. Then we commit this batch script with ''sbatch'' command. Then with command ''squeue'' we can track state of our job ( is it waiting for resources, or is already running ).+
  
 +[[howtouseslurm_001|SLURM, basic concepts]]
  
-----+[[howtouseslurm_002|SLURM, how to use constraints]]
  
-===Interactive mode=== +[[howtouseslurm_004|SLURM, how to build pipelines]]
-Its like login ( with ssh ) to computing nodebut we can decide ( with SLURM ) how much resources we require. And unlike with ssh, SLURM makes sure we get resources nobody else is already using. +
  
-For example if we need interactive session with resources of 4 coresand 200GB memory we use command : +[[howtouseslurm_003|SLURMgood to know]]
-  srun -N1 -n4 --mem=200G --pty bash -l+
  
-Or if we need interactive session with resources of 1 core and 1 GPU card : +[[https://slurm.schedmd.com/documentation.html|SLURM Documentation]]
-  srun -N1 -n1 --gres=gpu:1 --pty bash -l +
-   +
-Remember to use ''exit'' command to end interactive modeUnless you do this, resources you allocated starting interactive session will not be free to use by another user.+
  
howtouseslurm.1557593889.txt.gz · Last modified: 2023/08/01 06:38 (external edit)