|
Boost Users : |
Subject: Re: [Boost-users] [mpi] enviroment constructor different from MPI_Init
From: Matthias Troyer (troyer_at_[hidden])
Date: 2009-09-16 02:27:40
On Sep 16, 2009, at 6:38 AM, Ian McCulloch wrote:
> 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.
That was just my next question. Do you link with the same MPI when you
use Boost.MPI or the C API?
Matthias
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