2025-03-14 21:59:59 -06:00
|
|
|
# salloc
|
|
|
|
|
|
|
|
|
|
> Start an interactive shell session or execute a command by allocating one or more nodes in a cluster.
|
|
|
|
|
> More information: <https://slurm.schedmd.com/salloc.html>.
|
|
|
|
|
|
|
|
|
|
- Start an interactive shell session on a node in the cluster:
|
|
|
|
|
|
|
|
|
|
`salloc`
|
|
|
|
|
|
|
|
|
|
- Execute the specified command synchronously on a node in the cluster:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`salloc {{ls --all}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Only allocate nodes fulfilling the specified constraints:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`salloc {{[-C|--constraint]}} {{(amd|intel)&gpu}}`
|