Update Slurm

2024-06-10 11:33:49 +02:00
parent b77e06ab50
commit 097d5e647b

@ -27,7 +27,7 @@ gpu-short up 2:00:00 2 idle merlin-g-[001,008]
```
### Monitoring current jobs/ `squeue`
### Monitoring current(past) jobs/ `squeue`
To check how "busy" the the cluster currently is, do:
@ -43,6 +43,32 @@ To check how "busy" the the cluster currently is, do:
Find more Variables to be displayed at: https://slurm.schedmd.com/sacct.html
### Submitting/Cancelling jobs
### Submitting jobs
General submission command:
`sbatch myscript.sh ` submit a script
Simple example script:
```
#!/bin/bash
#SBATCH --cluster=merlin6
#SBATCH --partition=hourly
#SBATCH --nodes=1
#SBATCH --job-name="test"
echo "hello"
sleep 1m
```
**Important:** SLURM parameters can also be provided directly in the command-line. They will overwrite the SLURM params given in the script!Example:
`sbatch --job-name="bla" myscript.sh` will override the parameter `#SBATCH --job-name="test"` in the script.
### Cancelling jobs
`scancel <jobid> --cluser=<cluster_name>`