[mpich-discuss] Segfault in MPI_Comm_split on OS X (MPICH 3.2)

Dmitriy Morozov dmitriy at mrzv.org
Fri Aug 19 11:43:31 CDT 2016

When I compile and run the following code on my mac (running OS X
10.11.6, El Capitan), with MPICH 3.2 built from source (via Homebrew),
I get a segfault in MPI_Comm_split. If I do the same with a recent
clone from the git repository (specifically, d8bb1df), everything
works fine. I'm wondering if this is a known problem in 3.2.


// test-mpi.c

#include <mpi.h>

int main(int argc, char** argv)
    MPI_Init(&argc, &argv);

    MPI_Comm world = MPI_COMM_WORLD;

    int rank;
    MPI_Comm_rank(world, &rank);

    MPI_Comm local;
    MPI_Comm_split(world, rank, 0, &local);


mpicc test-mpi.c -o test-mpi
mpirun -n 2 ./test-mpi
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:

More information about the discuss mailing list