If I do not specify any --gres=gpu:1 option then the process will use up all GPUs in the compute node.
--gres=gpu:1
We only use Slurm for GPU sharing so we would like