- https://slurm.schedmd.com — official docs
- https://www.sherlock.stanford.edu/docs/user-guide/running-jobs/ — Stenford's Sherlock docs
- https://www.psc.edu/resources/bridges-2/user-guide-2-2/ — PSC Bridges-2 docs
#!/bin/bash
#SBATCH -n 8
#SBATCH -t 48:00:00
#SBATCH --gpus 1
source .bashrc
<your code>
squeue --me
squeue --json > jobs_2023-03-08.json
sinfo -o "%20N %10c %20m %30G %30P"
sacctmgr show qos
You can SSH directly to any machine that is running any of your tasks.
Yes, it will not affect submitted jobs. Scripts for submitted jobs are copied to another directory.