Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
eic_tools
Spack
Commits
f3bf89eb
Commit
f3bf89eb
authored
5 years ago
by
Alberto Chiusole
Committed by
Peter Scheibel
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
OpenMPI: add support for pbs/tm at configure. (#10620)
parent
28949787
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/openmpi/package.py
+24
-1
24 additions, 1 deletion
var/spack/repos/builtin/packages/openmpi/package.py
with
24 additions
and
1 deletion
var/spack/repos/builtin/packages/openmpi/package.py
+
24
−
1
View file @
f3bf89eb
...
@@ -45,6 +45,18 @@ def _mxm_dir():
...
@@ -45,6 +45,18 @@ def _mxm_dir():
return
None
return
None
def
_tm_dir
():
"""
Look for default directory where the PBS/TM package is
installed. Return None if not found.
"""
# /opt/pbs from PBS 18+; make this more flexible in the future
paths_list
=
(
"
/opt/pbs
"
,
)
for
path
in
paths_list
:
if
os
.
path
.
isdir
(
path
)
and
os
.
path
.
isfile
(
path
+
"
/include/tm.h
"
):
return
path
return
None
class
Openmpi
(
AutotoolsPackage
):
class
Openmpi
(
AutotoolsPackage
):
"""
An open source Message Passing Interface implementation.
"""
An open source Message Passing Interface implementation.
...
@@ -344,7 +356,18 @@ def with_or_without_mxm(self, activated):
...
@@ -344,7 +356,18 @@ def with_or_without_mxm(self, activated):
return
'
--without-{0}
'
.
format
(
opt
)
return
'
--without-{0}
'
.
format
(
opt
)
line
=
'
--with-{0}
'
.
format
(
opt
)
line
=
'
--with-{0}
'
.
format
(
opt
)
path
=
_mxm_dir
()
path
=
_mxm_dir
()
if
(
path
is
not
None
):
if
path
is
not
None
:
line
+=
'
={0}
'
.
format
(
path
)
return
line
def
with_or_without_tm
(
self
,
activated
):
opt
=
'
tm
'
# If the option has not been activated return --without-tm
if
not
activated
:
return
'
--without-{0}
'
.
format
(
opt
)
line
=
'
--with-{0}
'
.
format
(
opt
)
path
=
_tm_dir
()
if
path
is
not
None
:
line
+=
'
={0}
'
.
format
(
path
)
line
+=
'
={0}
'
.
format
(
path
)
return
line
return
line
...
...
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