Add a MPIRUN_OPTIONS environment variable when using the runParallel shell function.
When using OpenMPI 3.1.0, one could specify the runtime parameter '-oversubscribe' to mpirun
This commit is contained in:
parent
454253dbe9
commit
8201aa30bd
4 changed files with 11 additions and 1 deletions
2
ThirdParty/rpmBuild/SPECS/openmpi-3.1.0.spec
vendored
2
ThirdParty/rpmBuild/SPECS/openmpi-3.1.0.spec
vendored
|
@ -194,6 +194,7 @@ then
|
||||||
echo ""
|
echo ""
|
||||||
echo " MPI_HOME : \$MPI_HOME"
|
echo " MPI_HOME : \$MPI_HOME"
|
||||||
echo " MPI_ARCH_PATH : \$MPI_ARCH_PATH"
|
echo " MPI_ARCH_PATH : \$MPI_ARCH_PATH"
|
||||||
|
echo " MPIRUN_OPTIONS : \$MPIRUN_OPTIONS"
|
||||||
echo " OPAL_PREFIX : \$OPAL_PREFIX"
|
echo " OPAL_PREFIX : \$OPAL_PREFIX"
|
||||||
echo " PINC : \$PINC"
|
echo " PINC : \$PINC"
|
||||||
echo " PLIBS : \$PLIBS"
|
echo " PLIBS : \$PLIBS"
|
||||||
|
@ -243,6 +244,7 @@ if (\$?FOAM_VERBOSE && \$?prompt) then
|
||||||
echo ""
|
echo ""
|
||||||
echo " MPI_HOME : \$MPI_HOME"
|
echo " MPI_HOME : \$MPI_HOME"
|
||||||
echo " MPI_ARCH_PATH : \$MPI_ARCH_PATH"
|
echo " MPI_ARCH_PATH : \$MPI_ARCH_PATH"
|
||||||
|
echo " MPIRUN_OPTIONS : \$MPIRUN_OPTIONS"
|
||||||
echo " OPAL_PREFIX : \$OPAL_PREFIX"
|
echo " OPAL_PREFIX : \$OPAL_PREFIX"
|
||||||
echo " PINC : \$PINC"
|
echo " PINC : \$PINC"
|
||||||
echo " PLIBS : \$PLIBS"
|
echo " PLIBS : \$PLIBS"
|
||||||
|
|
|
@ -91,7 +91,7 @@ runParallel ()
|
||||||
fi
|
fi
|
||||||
cat system/fvSchemes > $LOG_NAME
|
cat system/fvSchemes > $LOG_NAME
|
||||||
cat system/fvSolution >> $LOG_NAME
|
cat system/fvSolution >> $LOG_NAME
|
||||||
( $mpirunProg -np $1 $APP_RUN -parallel < /dev/null > $LOG_NAME 2>&1 )
|
( $mpirunProg $MPIRUN_OPTIONS -np $1 $APP_RUN -parallel < /dev/null > $LOG_NAME 2>&1 )
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,10 @@
|
||||||
#setenv OPENMPI_COMPILE_FLAGS "`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
|
#setenv OPENMPI_COMPILE_FLAGS "`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
|
||||||
#setenv OPENMPI_LINK_FLAGS "`$OPENMPI_BIN_DIR/mpicc --showme:link`"
|
#setenv OPENMPI_LINK_FLAGS "`$OPENMPI_BIN_DIR/mpicc --showme:link`"
|
||||||
|
|
||||||
|
# MPI runtime options
|
||||||
|
#setenv MPI_BUFFER_SIZE 100000000
|
||||||
|
#setenv MPIRUN_OPTIONS -oversubscribe # OpenMPI version 3.1
|
||||||
|
|
||||||
# Specify system installed ThirdParty packages/libraries
|
# Specify system installed ThirdParty packages/libraries
|
||||||
# NB: The packages installed under $WM_THIRD_PARTY_DIR
|
# NB: The packages installed under $WM_THIRD_PARTY_DIR
|
||||||
# will always override these values.
|
# will always override these values.
|
||||||
|
|
|
@ -55,6 +55,10 @@ export FOAM_VERBOSE=1
|
||||||
#export OPENMPI_COMPILE_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
|
#export OPENMPI_COMPILE_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:compile`"
|
||||||
#export OPENMPI_LINK_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:link`"
|
#export OPENMPI_LINK_FLAGS="`$OPENMPI_BIN_DIR/mpicc --showme:link`"
|
||||||
|
|
||||||
|
# MPI runtime options
|
||||||
|
#export MPI_BUFFER_SIZE=100000000
|
||||||
|
#export MPIRUN_OPTIONS=-oversubscribe # OpenMPI version 3.1
|
||||||
|
|
||||||
# Specify system installed ThirdParty packages/libraries
|
# Specify system installed ThirdParty packages/libraries
|
||||||
# NB: The packages installed under $WM_THIRD_PARTY_DIR
|
# NB: The packages installed under $WM_THIRD_PARTY_DIR
|
||||||
# will always override these values.
|
# will always override these values.
|
||||||
|
|
Reference in a new issue