Boost logo

Boost Users :

Subject: Re: [Boost-users] [mpi] enviroment constructor different from MPI_Init
From: Ian McCulloch (ianmcc_at_[hidden])
Date: 2009-09-16 00:38:00


AlfC wrote:

> ok I tried your code and MPI_Init-like version still works and
> boost::mpi::environment version doesn't (i.e. Blacs returns the wrong
> nprocs)
>
> In fact the Blacs_pinfo returns just the same as if I don't define
> anything so effectivelly the boost::mpi::environment is doing nothing.
>
> I even checked that boost::mpi::environment::initialized() is false
> before constructing boost::mpi::environment and true after, but still
> Blacs_pinfo reports as if MPI is not initialized.

What platform are you using? Are you sure that BLACS and boost::mpi are
using the same MPI library? If BLACS is linked against a different MPI
library, for example, then you might see something like this.

HTH,
Ian McCulloch


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net