LinuxCommandLibrary

salloc

TLDR

Start an interactive shell on a cluster node

$ salloc
copy
Execute command on a cluster node
$ salloc ls --all
copy
Allocate nodes with constraints
$ salloc -C "(amd|intel)&gpu"
copy

SYNOPSIS

salloc [options] [command]

DESCRIPTION

salloc allocates resources from a Slurm cluster and starts an interactive shell or executes a specified command. It waits for resources to become available before starting.
Constraints can specify required node features like CPU type, GPU availability, or memory configuration.

PARAMETERS

-C, --constraint expr

Node feature constraints

CAVEATS

Resources are held until the shell exits or command completes. Allocation time depends on cluster load and requested resources.

HISTORY

Part of Slurm workload manager, providing interactive resource allocation for HPC clusters.

SEE ALSO

srun(1), sbatch(1), squeue(1)

Copied to clipboard