
29 Nov
2011
29 Nov
'11
4:51 p.m.
On Tue, 29 Nov 2011, Neiderer, Andrew M USA CIV (US) wrote:
I have libs/graph/example's working fine under RH in boost_1_48_0. But cannot get
MPI working with BGL, e.g. libs/mpi/example/hello_world.cpp :-(
When I translate using
$g++ -I .../boost_1_48_0 -I .../boost_1_48_0/boost/mpi hello_world.cpp
I get a bunch of errors, the first of which boost/mpi/config.hpp cannot find mpi.h.
Not even sure where mpi.h is located and how it differs from mpi.hpp?
You need to use your MPI implementation's C++ wrapper compiler (usually mpic++, mpicxx, or mpiCC) to compile programs that use MPI. Try that instead of g++ and mpi.h will most likely be found. -- Jeremiah Willcock