Perhaps some of the partition's default (maybe even implicit) are to blame?

On Mon, Apr 28, 2025 at 7:56 AM milad--- via slurm-users <
slurm-users@lists.schedmd.com> wrote:

> Update: I also noticed that specifying -ntasks makes a difference when
> --gpus is present.
>
> if I have two partitions a100 and h100 that both have free GPUs:
>
> ✅ h100 specified first in -p: works
> sbatch -p h100,a100 --gpus h100:1 script.sh
>
> ❌ h100 specified second: doesn't work
> sbatch -p a100,h100 --gpus h100:1 script.sh
>
> Adding --ntasks: works
> ✅ sbatch -p a100,h100 --gpus h100:1 --ntasks 1 script.sh
>
> --
> slurm-users mailing list -- slurm-users@lists.schedmd.com
> To unsubscribe send an email to slurm-users-le...@lists.schedmd.com
>
-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to