[Boost-bugs] [Boost C++ Libraries] #2485: MPI broadcast issue

Subject: [Boost-bugs] [Boost C++ Libraries] #2485: MPI broadcast issue
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-08 15:08:39


#2485: MPI broadcast issue
---------------------------------------+------------------------------------
 Reporter: bryon.robidoux_at_[hidden] | Owner: dgregor
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: mpi
  Version: Boost 1.36.0 | Severity: Showstopper
 Keywords: broadcast MPI |
---------------------------------------+------------------------------------
 The broadcast function is crashing and I can't see anything that I am
 doing wrong. Below I have the code and output to a very simple program
 that I used test the boost API.

 I compiled the boost libraries using Visual Studio 2008 SP1. I linked the
 MPI library against msmpi that is provided with the HPC server 2008 SDK. I
 ran this on a single HPC server 2008 box, so there is no cluster involved.
 It is the simplest case possible.

 Thanks for your help,
 Bryon

 Example Program ***************************************************
 int main(int argc, char* argv[])
 {
         mpi::environment env(argc, argv);
         mpi::communicator world;
         char value[128]={'\0'};
         if(world.rank()==0){
                 strcpy(value,"Hello Bryon from C API\0");
                 cout<<"start "<<value<<endl;
         }

         MPI_Bcast(value,12 , MPI_INT, 0, MPI_COMM_WORLD);
         std::cout<<world.rank()<<" " << value<<std::endl;

         bool was_successful=false;
         if(world.rank()==0)
                 was_successful=true;
         mpi::broadcast(world,was_successful,0);
         std::cout<<world.rank()<<" :"<<(was_successful?"Success with
 broacasting boolean":"Failure with broadcasting boolean")<<std::endl;

         std::string bvalue;
         if(world.rank()==0)
                 bvalue="Hello Bryon from boost API with string.";
         mpi::broadcast(world,bvalue,0);
         std::cout<<world.rank()<<" :"<<bvalue<<std::endl;

         return 0;
 }

 Output ********************************************************

 E:\HPC Class\hpcs-day3\HPCS-Day3\demos\09 MPI-Send-
 Recv\TaskParallelMPI\x64\rele
 ase>mpiexec -n 2 TaskParallelMPI
 start Hello Bryon from C API
 0 Hello Bryon from C API
 0 :Success with broacasting boolean
 1 Hello Bryon from C API
 1 :Success with broacasting boolean

 This application has requested the Runtime to terminate it in an unusual
 way.
 Please contact the application's support team for more information.

 job aborted:
 [ranks] message

 [0] terminated

 [1] process exited without calling finalize

 ---- error analysis -----

 [1] on 2008ROBIDOUXBR
 TaskParallelMPI ended prematurely and may have crashed. exit code 255

 ---- error analysis -----

 E:\HPC Class\hpcs-day3\HPCS-Day3\demos\09 MPI-Send-
 Recv\TaskParallelMPI\x64\rele
 ase>

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2485>
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:49:59 UTC