set specific GPU devices for different MPI processors?
Posted: Tue Aug 14, 2018 6:52 pm
Hi,
I wonder if I could get comments on how to set specific GPU devices for different MPI processors in calling magma_*_m functions. My machine has 28 CPUs and 4 GPU devices. Let's say my MPI programs runs with 2 MPI processors and each calls magma_*_m(NGPU=2, ...). What I want is that
MPI proc #0 uses GPU devices #0~1 and
MPI proc #1 uses GPU devices #2~3.
For this, I tried cudaSetValidDevices and magma_setdevice but they didn't help. I always see that the two MPI processors use GPU devices #0~1 sharing the resources. Does anyone suffer the same problem? Or, is Magma simply unable to choose specific GPU devices to use?
Thanks,
Hong
I wonder if I could get comments on how to set specific GPU devices for different MPI processors in calling magma_*_m functions. My machine has 28 CPUs and 4 GPU devices. Let's say my MPI programs runs with 2 MPI processors and each calls magma_*_m(NGPU=2, ...). What I want is that
MPI proc #0 uses GPU devices #0~1 and
MPI proc #1 uses GPU devices #2~3.
For this, I tried cudaSetValidDevices and magma_setdevice but they didn't help. I always see that the two MPI processors use GPU devices #0~1 sharing the resources. Does anyone suffer the same problem? Or, is Magma simply unable to choose specific GPU devices to use?
Thanks,
Hong