Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5596: MPI: problem creating communicator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-13 19:31:56
#5596: MPI: problem creating communicator
----------------------------------------+-----------------------------------
Reporter: irek.szczesniak@⦠| Owner: dgregor
Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpi
Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------+-----------------------------------
Comment (by dwsel <dwsel@â¦>):
Replying to [comment:3 monika.cienkus@â¦]:
> It's strange but dynamically created communicator work fine.
>
>
> {{{
> #include <vector>
> #include <boost/mpi.hpp>
> namespace mpi = boost::mpi;
> int main(int argc, char argv[])
Hello!
I have noticed as well you left out clause:
{{{
#!div style="font-size: 80%"
{{{#!cpp
if (!world.rank())
}}}
}}}
That could confirm my 3rd suspicion, but... more about my opinion below
You missed * in:
{{{
#!div style="font-size: 80%"
{{{#!cpp
int main(int argc, char * argv[])
}}}
}}}
After that your code compiles well.
Could you show me example use of the c communicator? I can't seem to get
it to work so far. Something as simple as:
{{{
#!div style="font-size: 80%"
{{{#!cpp
if (c->rank() == 0)
}}}
}}}
gives me clone_impl exception in addition to the same pionter exceptions I
get by simply dropping clause:
{{{
#!div style="font-size: 80%"
{{{#!cpp
if (!world.rank())
}}}
}}}
in the example provided by the author of the ticket. It seems that using
pointer to c is only delaying exceptions to the moment of the using it!
I think what are we doing here is simply redefinition of c but done by
different threads, that's why I believe dropping clause will not help at
all, because assigning processes to the communicator should be done by
single process.
Please elaborate.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5596#comment:5> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC