Boost logo

Boost-MPI :

Subject: [Boost-mpi] Incompatibility boost::mpi, boost::mpi::python, and OpenMPI 1.7, 1.8
From: Amos Anderson (amos.anderson_at_[hidden])
Date: 2014-09-29 16:21:19


Hello --

I'm getting a segmentation fault in my program, which uses boost 1.55. I approached the OpenMPI folks, thread starts here:
http://www.open-mpi.org/community/lists/users/2014/09/25395.php

and it appears that the problem is that when MPI_Init is called, boost::mpi is violating the C99 standard which requires argv[argc] == NULL:
http://stackoverflow.com/questions/3772796/argvargc/3772826#3772826

Is this a known problem? It's not urgent for me, since OpenMPI 1.6.5 works ok.

Thanks!
Amos.

Here's the boost::mpi code:

environment::environment(int& argc, char** &argv, bool abort_on_exception)
 : i_initialized(false),
   abort_on_exception(abort_on_exception)
{
 if (!initialized()) {
   BOOST_MPI_CHECK_RESULT(MPI_Init, (&argc, &argv));
   i_initialized = true;
 }

 MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN);
}



Boost-Commit list run by troyer at boostpro.com