pyamgx
pyamgx copied to clipboard
MPI pyamgx examples
Hi there,
I was wondering if there were any examples MPI based examples on pyamgx?
Kind regards,
Tony
Currently pyamgx does not support MPI, although that would be a welcome contribution!
Hey Shwina,
Sorry to revive an old question but I was hoping to use pyamgx on a node with 4 GPUs.
My problem doesn't require communication between nodes, rather I was hoping for each corner to be launched onto a separate GPU.
Should this be possible? All that I see that is necessary is to get the ID of each GPU but in your examples I can't quite figure out how to do this.
Hello @tzahtila - I apologize for the delay in responding. Could you please help me understand this use case further? Which AMGX C-API uses the GPU ID?
Typically for things like this in the past, I've run Python with mpirun
, and used mpi4py
to get the MPI rank associated with each process. That MPI rank can also be used to calculate the GPU ID.