How to correctly use MPI.Allgather() in python to gather different sized arrays from different processes

1k Views Asked by At

I'm using mpi4py currently, and I have a bunch of processes that are generating lists of tuples (or numpy arrays of tuples). At the end of each process, I want to call an allgather so that each process gets every list (Ideally, they are concatenated).

Unfortunately, the documentation on the mpi4py page doesn't cover allgather(), so I was wondering if anyone could help me. I'm confused if I'd need to use allgather() or allgatherv() or Allgather(), and essentially how this would work since I'm not scattering any data before-hand.

0

There are 0 best solutions below