Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
b16ef5f0
Commit
b16ef5f0
authored
15 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
ENH: set PINC, PLIBS in the rules (not the env) for system-openmpi
BUG: syntax error in settings.sh
parent
0d445841
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/settings.csh
+6
-12
6 additions, 12 deletions
etc/settings.csh
etc/settings.sh
+5
-9
5 additions, 9 deletions
etc/settings.sh
wmake/rules/General/mplibSYSTEMOPENMPI
+4
-0
4 additions, 0 deletions
wmake/rules/General/mplibSYSTEMOPENMPI
with
15 additions
and
21 deletions
etc/settings.csh
+
6
−
12
View file @
b16ef5f0
...
@@ -137,8 +137,7 @@ case OpenFOAM:
...
@@ -137,8 +137,7 @@ case OpenFOAM:
_foamAddPath
$gccDir
/bin
_foamAddPath
$gccDir
/bin
# 64-bit needs lib64, but 32-bit needs lib (not lib32)
# 64-bit needs lib64, but 32-bit needs lib (not lib32)
if
(
"
$WM_ARCH_OPTION
"
=
64
)
then
if
(
$WM_ARCH_OPTION
==
64
)
then
then
_foamAddLib
$gccDir
/lib
$WM_COMPILER_LIB_ARCH
_foamAddLib
$gccDir
/lib
$WM_COMPILER_LIB_ARCH
else
else
_foamAddLib
$gccDir
/lib
_foamAddLib
$gccDir
/lib
...
@@ -150,7 +149,6 @@ case OpenFOAM:
...
@@ -150,7 +149,6 @@ case OpenFOAM:
# add in mpc libraries (not need for older gcc)
# add in mpc libraries (not need for older gcc)
if
(
$?
mpc_version
)
then
if
(
$?
mpc_version
)
then
then
_foamAddLib
$mpcDir
/lib
_foamAddLib
$mpcDir
/lib
endif
endif
...
@@ -209,18 +207,14 @@ case OPENMPI:
...
@@ -209,18 +207,14 @@ case OPENMPI:
breaksw
breaksw
case
SYSTEMOPENMPI:
case
SYSTEMOPENMPI:
#
This
use
s
the installed openmpi
. It needs mpicc installed!
# use the
system
installed openmpi
, get library directory via mpicc
set
mpi_version
=
openmpi-system
set
mpi_version
=
openmpi-system
set
libDir
=
`
mpicc
--showme
:link |
sed
-e
's/.*-L\([^ ]*\).*/\1/'
`
# Set compilation flags here instead of in wmake/rules/../mplibSYSTEMOPENMPI
setenv PINC
`
mpicc
--showme
:compile
`
setenv PLIBS
`
mpicc
--showme
:link
`
set
libDir
=
`
echo
"
$PLIBS
"
|
sed
-e
's/.*-L\([^ ]*\).*/\1/'
`
if
(
$?
FOAM_VERBOSE
&&
$?
prompt
)
then
if
(
$?
FOAM_VERBOSE
&&
$?
prompt
)
then
echo
"Using system installed MPI:"
echo
"Using system installed
Open
MPI:"
echo
" compile flags :
$PINC
"
echo
" compile flags :
`
mpicc
--showme
:compile
`
"
echo
" link flags :
$PLIBS
"
echo
" link flags :
`
mpicc
--showme
:link
`
"
echo
" libmpi dir :
$libDir
"
echo
" libmpi dir :
$libDir
"
endif
endif
...
...
This diff is collapsed.
Click to expand it.
etc/settings.sh
+
5
−
9
View file @
b16ef5f0
...
@@ -235,19 +235,15 @@ OPENMPI)
...
@@ -235,19 +235,15 @@ OPENMPI)
;;
;;
SYSTEMOPENMPI
)
SYSTEMOPENMPI
)
#
This
use
s
the installed openmpi
. It needs mpicc installed!
# use the
system
installed openmpi
, get library directory via mpicc
mpi_version
=
openmpi-system
mpi_version
=
openmpi-system
libDir
=
`
mpicc
--showme
:link |
sed
-e
's/.*-L\([^ ]*\).*/\1/'
`
# 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
"
]
if
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
then
then
echo
"Using system installed MPI:"
echo
"Using system installed
Open
MPI:"
echo
" compile flags :
$PINC
"
echo
" compile flags :
`
mpicc
--showme
:compile
`
"
echo
" link flags :
$PLIBS
"
echo
" link flags :
`
mpicc
--showme
:link
`
"
echo
" libmpi dir :
$libDir
"
echo
" libmpi dir :
$libDir
"
fi
fi
...
...
This diff is collapsed.
Click to expand it.
wmake/rules/General/mplibSYSTEMOPENMPI
+
4
−
0
View file @
b16ef5f0
# use the system installed openmpi - mpicc must be installed
PFLAGS = -DOMPI_SKIP_MPICXX
PFLAGS = -DOMPI_SKIP_MPICXX
PINC = $(shell mpicc --showme:compile)
PLIBS = $(shell mpicc --showme:link)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment