MPI_Waitany does not appear to be thread-safe
Calling MPI_Waitany
from multiple threads on the same array of MPI_Request
objects causes segfaults.
I've filed a bug against OpenMPI (https://github.com/open-mpi/ompi/issues/6004), we should also file one against IntelMPI as both are broken.