Running jobs: Difference between revisions

Jump to navigation Jump to search
m
fixed the interactive job example
(Remove architecture-specific recommendations for Cedar; see the Cedar page instead)
m (fixed the interactive job example)
Line 221: Line 221:
<!--T:29-->
<!--T:29-->
You can start an interactive session on a compute node with [https://slurm.schedmd.com/salloc.html salloc]. In the following example we request two tasks, which corresponds to two CPU cores and 3 GB of memory, for an hour:
You can start an interactive session on a compute node with [https://slurm.schedmd.com/salloc.html salloc]. In the following example we request two tasks, which corresponds to two CPU cores and 3 GB of memory, for an hour:
  $ salloc --time=1:0:0 --mem=3G --ntasks=2 --account=def-someuser
  $ salloc --time=1:0:0 --mem-per-cpu=3G --ntasks=1 --account=def-someuser
  salloc: Granted job allocation 1234567
  salloc: Granted job allocation 1234567
  $ ...            # do some work
  $ ...            # do some work
cc_staff
27

edits

Navigation menu