Boost logo

Boost-Build :

Subject: Re: [Boost-build] Compiling Boost.MPI and mpich2 under Suse Linux
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2010-05-28 14:52:42


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;
}


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk