salloc(1) --time%3D1%3A00%3A0 --ntasks%3D1 --mem-per-cpu%3D3600 --gres%3Dgpu%3A1 --account%3Ddef-someprof
Obtain a SLURM job allocation (a set of nodes), execute a command, and then release the allocation when the command is finished
source manpages: salloc