|
Boost Users : |
Subject: Re: [Boost-users] [MPI] request::test() crashes or returns garbage
From: Patrik Jonsson (patrik-web_at_[hidden])
Date: 2011-11-18 12:05:34
Ok, figured it out. As I suspected, there was a mismatch, not with
libraries but with the headers. Boost built correctly, but when I
compiled my program it found headers from a different OpenMPI build
and used those.
Thanks for your assistance and sorry for the noise.
Regards,
/Patrik
On Fri, Nov 18, 2011 at 11:26 AM, Riccardo Murri
<riccardo.murri_at_[hidden]> wrote:
> Hi Patrik,
>
> On Fri, Nov 18, 2011 at 16:30, Patrik Jonsson
> <patrik-web_at_[hidden]> wrote:
>> Thanks for responding. I'm beginning to suspect this is because of
>> some library mismatch, since the C version works correctly for me.
>> Where does the build pick up the location of the MPI library?
>
> The build process uses the mpic++/mpicxx/mpiCC compiler wrapper, which
> then inserts the correct "-I"/"-L" switches for the real C++ compiler.
>
> The build process searches for "mpic++", "mpiCC" and "mpicxx" in this
> order; look into `tools/build/v2/tools/mpi.jam` for details.
>
> If you want to force the use of a specific `mpic++`, you can append
> this line to the `user-config.jam` file:
>
> using mpi : /path/to/preferred/mpicxx ;
>
> Best regards,
> Riccardo
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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