Versions Compared

Key

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

...

There are two options to run slurm batch sbatch script

1. Ask for the cluster upon request, just run 

...

For example, check the reservation name using scontrol:


Code Block
$ scontrol show reservation
ReservationName=helios_ophirm_23246 StartTime=2018-12-18T12:00:00 EndTime=2019-12-18T12:00:00 Duration=365-00:00:00
   Nodes=helios[001-032] NodeCnt=32 CoreCnt=1280 Features=(null) PartitionName=helios Flags=IGNORE_JOBS,SPEC_NODES
   TRES=cpu=1280
   Users=ophirm Accounts=(null) Licenses=(null) State=ACTIVE BurstBuffer=(null) Watts=n/a

...

Code Block
#SBATCH --reservation=helios_ophirm_23246


And then run the sbatch command.


Another option, in case you are using salloc command, add --res=<reservation name>

Code Block
$ salloc -N 4 -p helios --res=helios_ophirm_23246



Create a reservation example:

Code Block
$ sudo scontrol create reservation duration=120 user=ophirm nodes=helios032 starttime=now     
Reservation created: ophirm_149


Delete a reservation:

Code Block
$ sudo scontrol delete reservation=ophirm_149


For more info about create and cancel the reservations see here: https://slurm.schedmd.com/reservations.html