Re: [Boost-bugs] [Boost C++ Libraries] #5596: MPI: problem creating communicator

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5596: MPI: problem creating communicator
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-06-14 08:58:02


#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 irek.szczesniak@…):

 I tested your solution and it doesn't resolve the problem. The program
 still utilizes the CPU 100%, and doesn't finish. So creating the
 communicator dynamically doesn't make a difference.

 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[])
> {
> mpi::environment env(argc, argv);
> mpi::communicator world, c;
>
> std::vector<int> v(1);
> mpi::group wg = world.group();
> mpi::group g = wg.include(v.begin(), v.end());
> c = new mpi::communicator(world, g);
>
> if (!world.rank()){
> std::cout << "v.size : " << v.size() << std::endl;
> std::cout << "wg.size : " << wg.size() << std::endl;
> std::cout << "g.size : " << g.size() << std::endl;
> std::cout << "c.size : " << c->size() << std::endl;
> }
>
> return 0;
> }
>
> }}}
>

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5596#comment:6>
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