ENH: Have new WM_MPLIB message passing library : SYSTEMOPENMPI

It uses mpicc to find out where the installed libraries are.
This commit is contained in:
mattijs
2010-03-01 15:23:00 +00:00
parent 85a481906a
commit 5ef1bac786
2 changed files with 46 additions and 0 deletions

View File

@ -183,6 +183,28 @@ OPENMPI)
unset mpi_version
;;
SYSTEMOPENMPI)
mpi_version=openmpi-system
# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
export PINC=`mpicc --showme:compile`
export PLIBS=`mpicc --showme:link`
libDir=`echo "$PLIBS" | sed -e 's/.*-L\([^ ]*\).*/\1/'`
if [ "$FOAM_VERBOSE" -a "$PS1" ]
then
echo "Using system installed MPI:"
echo " compile flags : $PINC"
echo " link flags : $PLIBS"
echo " libmpi dir : $libDir"
fi
_foamAddLib $libDir
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
unset mpi_version libDir
;;
MPICH)
mpi_version=mpich2-1.1.1p1
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version