Boost logo

Boost-Build :

Subject: Re: [Boost-build] Compiling Boost.MPI and mpich2 under Suse Linux
From: Michael1984 (m.auli_at_[hidden])
Date: 2010-05-31 06:13:00

Hi Noel,

I figured out my mistake: There was obviously a mismatch in the way
the MPICH2 libraries were compiled and what boost.mpi expected.

I played around with the configure settings of both and aligned them
so that mpich2 was compiled with -fPIC as well as with dynamic libraries.

mpich2$./configure --without-mpe --disable-f77 --disable-f90
--disable-f90modules --disable-cxx --disable-mpedbg
--disable-devdebug \
--disable-debug --enable-fast --enable-sharedlibs=gcc

accomplished it for some reason...

best wishes,



Belcourt, Kenneth wrote:
> I'd step back from Boost.MPI for now. Write the canonical 10 line MPI
> program to print out the parallel size and rank and make sure this
> program runs without Boost, just MPI by itself. Look carefully at
> what libraries are linked and which mpirun is used to exec the binary.
> -- Noel
> Here's what I mean.
> #include <iostream>
> #include "mpi.h"
> int main (int argc, char *argv[])
> {
> MPI_Init(&argc, &argv);
> int rank = 0;
> MPI_Comm_rank(MPI_COMM_WORLD, &rank);
> std::cout << "hello from processor " << rank << std::endl;
> MPI_Finalize();
> return 0;
> }
> _______________________________________________
> Unsubscribe & other changes:

View this message in context:
Sent from the Boost - Build mailing list archive at

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at