Merge remote-tracking branch 'remotes/origin/feature/mvapich2' into nextRelease
Conflicts: etc/bashrc etc/cshrc
This commit is contained in:
commit
f9e0818602
6 changed files with 69 additions and 3 deletions
|
@ -144,7 +144,7 @@ export WM_COMPILER_LIB_ARCH=
|
||||||
# WM_COMPILE_OPTION = Opt | Debug | Prof
|
# WM_COMPILE_OPTION = Opt | Debug | Prof
|
||||||
: ${WM_COMPILE_OPTION:=Opt}; export WM_COMPILE_OPTION
|
: ${WM_COMPILE_OPTION:=Opt}; export WM_COMPILE_OPTION
|
||||||
|
|
||||||
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI
|
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI | MVAPICH2
|
||||||
: ${WM_MPLIB:=OPENMPI}; export WM_MPLIB
|
: ${WM_MPLIB:=OPENMPI}; export WM_MPLIB
|
||||||
|
|
||||||
# WM_NCOMPPROCS = <number of processes to use>
|
# WM_NCOMPPROCS = <number of processes to use>
|
||||||
|
|
|
@ -128,7 +128,7 @@ if ( ! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION Opt
|
||||||
#setenv WM_COMPILE_OPTION Opt
|
#setenv WM_COMPILE_OPTION Opt
|
||||||
#setenv WM_COMPILE_OPTION Debug
|
#setenv WM_COMPILE_OPTION Debug
|
||||||
|
|
||||||
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI
|
# WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI | GAMMA | MPI | QSMPI | MVAPICH2
|
||||||
if ( ! $?WM_MPLIB ) setenv WM_MPLIB OPENMPI
|
if ( ! $?WM_MPLIB ) setenv WM_MPLIB OPENMPI
|
||||||
|
|
||||||
# WM_NCOMPPROCS = <number of processes to use>
|
# WM_NCOMPPROCS = <number of processes to use>
|
||||||
|
|
|
@ -282,6 +282,36 @@ case SYSTEMOPENMPI:
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
|
case MVAPICH2:
|
||||||
|
set mpi_version=mvapich2
|
||||||
|
|
||||||
|
if ($?MVAPICH2_BIN_DIR != 0) then
|
||||||
|
if (-d "${MVAPICH2_BIN_DIR}" ) then
|
||||||
|
_foamAddPath $MVAPICH2_BIN_DIR
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
set mpicc_cmd=`which mpicc`
|
||||||
|
setenv MVAPICH2_BIN_DIR `dirname $mpicc_cmd`
|
||||||
|
unset mpicc_cmd
|
||||||
|
endif
|
||||||
|
|
||||||
|
setenv MPI_HOME `dirname $MVAPICH2_BIN_DIR`
|
||||||
|
setenv MPI_ARCH_PATH $MPI_HOME
|
||||||
|
|
||||||
|
setenv PINC "`mpicc -show -cc= -nativelinking`"
|
||||||
|
setenv PLIBS "`mpicc -show -cc= | sed "s%$PINC%%"`"
|
||||||
|
|
||||||
|
if ($?FOAM_VERBOSE && $?prompt) then
|
||||||
|
echo " Environment variables defined for MVAPICH2:"
|
||||||
|
echo " MPI_ARCH_PATH : $MPI_ARCH_PATH"
|
||||||
|
echo " PINC : $PINC"
|
||||||
|
echo " PLIBS : $PLIBS"
|
||||||
|
endif
|
||||||
|
|
||||||
|
setenv FOAM_MPI_LIBBIN $FOAM_LIBBIN/$mpi_version
|
||||||
|
unset mpi_version
|
||||||
|
breaksw
|
||||||
|
|
||||||
case MPICH:
|
case MPICH:
|
||||||
set mpi_version=mpich-1.2.4
|
set mpi_version=mpich-1.2.4
|
||||||
setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
|
setenv MPI_HOME $WM_THIRD_PARTY_DIR/$mpi_version
|
||||||
|
|
|
@ -334,6 +334,42 @@ SYSTEMOPENMPI)
|
||||||
unset mpi_version
|
unset mpi_version
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
MVAPICH2)
|
||||||
|
mpi_version=mvapich2
|
||||||
|
|
||||||
|
if [ -n "${MVAPICH2_BIN_DIR}" ] && [ -d "${MVAPICH2_BIN_DIR}" ]
|
||||||
|
then
|
||||||
|
_foamAddPath $MVAPICH2_BIN_DIR
|
||||||
|
else
|
||||||
|
MVAPICH2_BIN_DIR=$(dirname `which mpicc`)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if which mpicc >/dev/null
|
||||||
|
then
|
||||||
|
mpicc -v 2>/dev/null | grep -q "mpicc for MVAPICH2" ||
|
||||||
|
echo "Warning: `which mpicc` does not appear to be for MVAPICH2"
|
||||||
|
else
|
||||||
|
echo "Warning: mpicc not available"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export MPI_HOME=`dirname $MVAPICH2_BIN_DIR`
|
||||||
|
export MPI_ARCH_PATH=$MPI_HOME
|
||||||
|
|
||||||
|
export PINC="`mpicc -show -cc= -nativelinking`"
|
||||||
|
export PLIBS="`mpicc -show -cc= | sed "s%$PINC%%"`"
|
||||||
|
|
||||||
|
if [ "$FOAM_VERBOSE" -a "$PS1" ]
|
||||||
|
then
|
||||||
|
echo " Environment variables defined for MVAPICH2:"
|
||||||
|
echo " MPI_ARCH_PATH : $MPI_ARCH_PATH"
|
||||||
|
echo " PINC : $PINC"
|
||||||
|
echo " PLIBS : $PLIBS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
|
||||||
|
unset mpi_version
|
||||||
|
;;
|
||||||
|
|
||||||
MPICH)
|
MPICH)
|
||||||
mpi_version=mpich-1.2.4
|
mpi_version=mpich-1.2.4
|
||||||
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
|
export MPI_HOME=$WM_THIRD_PARTY_DIR/$mpi_version
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -x
|
||||||
wmake libso dummy
|
wmake libso dummy
|
||||||
|
|
||||||
case "$WM_MPLIB" in
|
case "$WM_MPLIB" in
|
||||||
*MPI*)
|
*MPI* | MVAPICH*)
|
||||||
set +x
|
set +x
|
||||||
echo
|
echo
|
||||||
echo "Note: ignore spurious warnings about missing mpicxx.h headers"
|
echo "Note: ignore spurious warnings about missing mpicxx.h headers"
|
||||||
|
|
0
wmake/rules/linux64Gcc/mplibMVAPICH2
Normal file
0
wmake/rules/linux64Gcc/mplibMVAPICH2
Normal file
Reference in a new issue