|
Boost-MPI : |
Subject: Re: [Boost-mpi] Incompatibility boost::mpi, boost::mpi::python, and OpenMPI 1.7, 1.8
From: Matthias Troyer (troyer_at_[hidden])
Date: 2014-09-30 03:15:41
Hi,
Does this only appear when initializing Boost.MPI from Python or also in pure C++ programs?
Matthias
> On Sep 29, 2014, at 22:21, Amos Anderson <amos.anderson_at_[hidden]> wrote:
>
> 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-mpi mailing list
> Boost-mpi_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-mpi
Boost-Commit list run by troyer at boostpro.com