[slurm-users] How to bind GPUs with CPU cores

Ward Poelmans ward.poelmans at vub.be
Fri Oct 14 09:58:53 UTC 2022


Hi William,

On 14/10/2022 11:41, William Zhang wrote:
  
> How to realize this function .
> For example ,
> A job requires 6 CPUs with 1 GPU .And it runs on gpu ID 0 , CPU ID 0-5 .
> The second job requires 8 CPUs with 1 GPU . If it runs on gpu ID 1 ,we hope the CPU ID is 16-23.
> The third job requires 6 CPUs with 1 GPU . If it runs on gpu ID 2 ,we hope the CPU ID is 32-37.
> The next job requires 12 CPUs with 2 GPU . If it runs on gpu ID 3-4 ,we hope the CPU ID is 48-53,64-69 .
> 
> 
> Can we implement this function ?

Have a look at the --gres-flags=enforce-binding option of sbatch.

Ward

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4741 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20221014/11a28332/attachment.bin>


More information about the slurm-users mailing list