mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CONFIG: provide foamConfigurePaths -mpi option
- makes it easier to switch between mpi implementations (eg, openmpi, intelmpi etc) - add comment about compiler setting for KNL
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
# \\ / O peration |
|
# \\ / O peration |
|
||||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
# \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
# \\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# License
|
# License
|
||||||
# This file is part of OpenFOAM.
|
# This file is part of OpenFOAM.
|
||||||
@ -55,6 +55,7 @@ usage: ${0##*/}
|
|||||||
-metis-path dir specify 'METIS_ARCH_PATH'
|
-metis-path dir specify 'METIS_ARCH_PATH'
|
||||||
-paraview ver specify 'ParaView_VERSION' (eg, 5.0.1)
|
-paraview ver specify 'ParaView_VERSION' (eg, 5.0.1)
|
||||||
-paraview-path dir specify 'ParaView_DIR' (eg, /opt/paraviewopenfoam3120)
|
-paraview-path dir specify 'ParaView_DIR' (eg, /opt/paraviewopenfoam3120)
|
||||||
|
-mpi name specify type for 'WM_MPLIB' (eg, FJMPI, INTELMPI, etc)
|
||||||
-openmpi ver specify ThirdParty openmpi version for 'FOAM_MPI'
|
-openmpi ver specify ThirdParty openmpi version for 'FOAM_MPI'
|
||||||
-openmpi-system activate system openmpi
|
-openmpi-system activate system openmpi
|
||||||
-openmpi-third activate ThirdParty openmpi (using default version)
|
-openmpi-third activate ThirdParty openmpi (using default version)
|
||||||
@ -338,6 +339,15 @@ do
|
|||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
-mpi)
|
||||||
|
# Explicitly set WM_MPLIB=...
|
||||||
|
[ "$#" -ge 2 ] || die "'$1' option requires an argument"
|
||||||
|
replace etc/bashrc WM_MPLIB "$2"
|
||||||
|
optMpi=system
|
||||||
|
adjusted=true
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
|
||||||
-openmpi)
|
-openmpi)
|
||||||
# Replace FOAM_MPI=openmpi-<digits>.. and set to use third-party
|
# Replace FOAM_MPI=openmpi-<digits>.. and set to use third-party
|
||||||
# The edit is slightly fragile, but works
|
# The edit is slightly fragile, but works
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export FOAM_INST_DIR
|
|||||||
export WM_COMPILER_TYPE=system
|
export WM_COMPILER_TYPE=system
|
||||||
|
|
||||||
#- Compiler:
|
#- Compiler:
|
||||||
# WM_COMPILER = Gcc | Gcc4[8-9] | Gcc5[1-4] | Gcc6[1-2] | Clang | Icc
|
# WM_COMPILER = Gcc | Gcc4[8-9] | Gcc5[1-4] | Gcc6[1-2] | Clang | Icc | IccKNL
|
||||||
export WM_COMPILER=Gcc
|
export WM_COMPILER=Gcc
|
||||||
unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH
|
unset WM_COMPILER_ARCH WM_COMPILER_LIB_ARCH
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,7 @@ setenv FOAM_INST_DIR `lsof +p $$ |& grep -oE '/.*'$WM_PROJECT'[^/]*/etc/cshrc' |
|
|||||||
setenv WM_COMPILER_TYPE system
|
setenv WM_COMPILER_TYPE system
|
||||||
|
|
||||||
#- Compiler:
|
#- Compiler:
|
||||||
# WM_COMPILER = Gcc | Gcc4[8-9] | Gcc5[1-4] | Gcc6[1-2] | Clang | Icc
|
# WM_COMPILER = Gcc | Gcc4[8-9] | Gcc5[1-4] | Gcc6[1-2] | Clang | Icc | IccKNL
|
||||||
setenv WM_COMPILER Gcc
|
setenv WM_COMPILER Gcc
|
||||||
setenv WM_COMPILER_ARCH # defined but empty
|
setenv WM_COMPILER_ARCH # defined but empty
|
||||||
unsetenv WM_COMPILER_LIB_ARCH
|
unsetenv WM_COMPILER_LIB_ARCH
|
||||||
|
|||||||
Reference in New Issue
Block a user