id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc
665	MPICH2 with Boost	Kraus Philipp <philipp.kraus@…>	balaji	"

{{{

Hi,

I try to compile my first C++ app with MPICH2 (I have been working for
some month with OpenMPI ). I had compiled Boost (1.39) with the ""using
mpi / --with-mpi"" option.

Under my OSX shell I had set the library pathes:

LIBRARY_PATH=/Developer/SelfExtensions/Qt/4.5.1/lib:/Developer/
SelfExtensions/MPICH/1.1/lib:/Developer/SelfExtensions/GSL/1.9.0/lib:/
Developer/SelfExtensions/Boost/1.39.0-mpich/lib:

LD_LIBRARY_PATH=/Developer/SelfExtensions/Qt/4.5.1/lib:/Developer/
SelfExtensions/MPICH/1.1/lib:/Developer/SelfExtensions/GSL/1.9.0/lib:/
Developer/SelfExtensions/Boost/1.39.0-mpich/lib:

PATH=/Developer/SelfExtensions/Qt/4.5.1/bin:/Developer/SelfExtensions/
MPICH/1.1/bin:/Developer/SelfExtensions/Ant/bin:/usr/bin:/bin:/usr/
sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin:/usr/local/bin:/usr/
texbin

DYLD_LIBRARY_PATH=/Developer/SelfExtensions/Qt/4.5.1/lib:/Developer/
SelfExtensions/MPICH/1.1/lib:/Developer/SelfExtensions/GSL/1.9.0/lib:/
Developer/SelfExtensions/Boost/1.39.0-mpich/lib:

OMPI_LDFLAGS=-lboost_mpi-xgcc40-mt-1_39  -lboost_serialization-xgcc40-
mt-1_39

My testcode shows like:

#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
#include <iostream>
namespace mpi = boost::mpi;

int main(int argc, char* argv[])
{
   mpi::environment env(argc, argv);
   mpi::communicator world;
   std::cout << ""I am process "" << world.rank() << "" of "" <<
world.size()
             << ""."" << std::endl;
   return 0;
}

This code with OpenMPI runs correct, with MPICH2 I get an running error

[MacMini:55917] *** Process received signal ***
[MacMini:55917] Signal: Segmentation fault (11)
[MacMini:55917] Signal code: Address not mapped (1)
[MacMini:55917] Failing at address: 0x44000088
[ 1] [0xbffff0c8, 0x44000088] (-P-)
[ 2] (_ZN5boost3mpi11environmentC2ERiRPPcb + 0x4b) [0xbffff128,
0x00005ddb]
[ 3] (main + 0x2f) [0xbffff168, 0x00002301]
[ 4] (start + 0x36) [0xbffff180, 0x000022a6]
[ 5] [0x00000000, 0x00000001] (FP-)
[MacMini:55917] *** End of error message ***
Segmentation fault

I stared the mpd without options. With OpenMPI I can run the program
on 2 physical CPU with 4 cores on each CPU, so I get: I am process 0-7
of 8

Can anyone help me to solve my problem? I would like to change from
OpenMPI to MPICH, because I need parallel algorithms under Windows and
Unix Systems

Thanks a lot

Phil


}}}"	bug	closed	major	mpich2-1.1.1	mpich2	fixed		
