Subject: Re: [Boost-mpi] MPI auto-detection failed
From: Alain Miniussi (alain.miniussi_at_[hidden])
Date: 2014-10-11 07:33:52
Forget it ;-)
Bjam try to use the most common compiler wraper option to display the
link and build command. Intel does not support them anymore (their
implementation is based on mpich those options are tested) so bjam
cannot use those. To make things worse, mpiicpc -<any unknown option>
will not return an error so I am not even sure bjam can try the other
option (which do not exist either). There is a feature request filed at
intel and things should improve in the future.
That being said:
"mpiicpc -show" will display the options to use to compile directly mpi
application through icpc.
On my current box:
-L/opt/intel//impi/5.0.1.035/intel64/lib -Xlinker --enable-new-dtags
-Xlinker -rpath -Xlinker /opt/intel//impi/5.0.1.035/intel64/lib/release
-Xlinker -rpath -Xlinker /opt/intel//impi/5.0.1.035/intel64/lib -Xlinker
-rpath -Xlinker /opt/intel/mpi-rt/5.0/intel64/lib/release -Xlinker
-rpath -Xlinker /opt/intel/mpi-rt/5.0/intel64/lib -lmpicxx -lmpifort
-lmpi -lmpigi -ldl -lrt -lpthread
you can use that to deduce the include path, library path and libraries.
From there, you can explicitly configure the mpi section of your
project-config.jam, on my box, that's:
using mpi : :
You might want to set the run path too depending on you preferences wrt
There is an extra argument which could be usefull to set if you want to
run the test, depending on you intel's version of MPI:
using mpi : :
that's a flavour of mpiexec that does not require the mpd daemon to be
running. It should become the default but I think at least mpiexec still
requires the daemon for the impi 5.x version.
Don't forget to have a look at boost/mpi/config.hpp and look for:
you probably want to undocument it.
Hope it help.
On 11/10/2014 07:03, Ãric Germaneau wrote:
> Dear all,
> I'm building boost for the first time.
> I'm using Intel compiler.
> The b2 command print this message:
> MPI auto-detection failed: unknown wrapper compiler mpic++
> Please report this error to the Boost mailing list:
> You will need to manually configure MPI support.
> Would you please shed some light on this matter?
> I need to use mpiicc and mpiicpc.
> Thank you,
> Ãric Germaneau (è¾æµ·å ), Specialist
> Center for High Performance Computing
> Shanghai Jiao Tong University
> Room 205 Network Center, 800 Dongchuan Road, Shanghai 200240 China
> M:germaneau_at_[hidden] P:+86-136-4161-6480 W:http://hpc.sjtu.edu.cn
> Boost-mpi mailing list
-- --- Alain
Boost-Commit list run by troyer at boostpro.com