[bjam] boost mpi compiler wrapper
In my system (cluster) there is a mpiCC wrapper for mpi c++ compilation. Unfortunately it is not compatible with bjam detection. so I added the lines: using mpi : mpiCC : <...>... ; to project-config.jam however when trying to compile boost.mpi it still uses g++ so the correct mpi.h file is not detected. I found that if I modifying unsing gcc : : mpiCC : <...> ... ; does the job. So, should I compile the whole boost with mpi compiler wrapper? It doesn't seem elegant and I fear problems in the future for libraries that don't use mpi. Thank you, Alfredo
On Jul 9, 2010, at 8:30 PM, alfC wrote:
In my system (cluster) there is a mpiCC wrapper for mpi c++ compilation. Unfortunately it is not compatible with bjam detection.
so I added the lines:
using mpi : mpiCC : <...>... ;
to project-config.jam
I'm not sure about project-config.jam, I put using mpi ... into the user-config.jam and it seems to work fine. You might run bjam --debug-configuration to see if the build system is able to fine MPI. You should see something like this in your output. ===============MPI Auto-configuration=============== Found recent LAM-MPI or Open MPI wrapper compiler: /usr/local/mpi/ openmpi-1.2.8/intel-11.0/bin/mpicxx MPI compilation flags: -D_REENTRANT -I/usr/local/mpi/openmpi-1.2.8/ intel-11.0/include MPI link flags: -Wl,-u,_munmap -Wl,-multiply_defined,suppress -L/usr/ local/mpi/openmpi-1.2.8/intel-11.0/lib -lmpi_cxx -lmpi -lopen-rte - lopen-pal MPI build features: <define>_REENTRANT <include>/usr/local/mpi/openmpi-1.2.8/intel-11.0/ include <library-path>/usr/local/mpi/openmpi-1.2.8/intel-11.0/lib <find-shared-library>mpi_cxx <find-shared-library>mpi <find-shared- library>open-rte <find-shared-library>open-pal <linkflags>-Wl,- u,_munmap -Wl,-multiply_defined,suppress MPI launcher: mpirun -np ==================================================== -- Noel
participants (2)
-
alfC
-
Belcourt, Kenneth