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
b1bd7774
Unverified
Commit
b1bd7774
authored
4 years ago
by
Greg Becker
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
petsc: fix conditional activation of parmetis (#16533)
parent
23a5f3f2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/petsc/package.py
+7
-4
7 additions, 4 deletions
var/spack/repos/builtin/packages/petsc/package.py
with
7 additions
and
4 deletions
var/spack/repos/builtin/packages/petsc/package.py
+
7
−
4
View file @
b1bd7774
...
...
@@ -216,7 +216,7 @@ def mpi_dependent_options(self):
# enabled. This generates a list of any such errors.
errors
=
[
error_message_fmt
.
format
(
library
=
x
)
for
x
in
(
'
hdf5
'
,
'
hypre
'
,
'
parmetis
'
,
'
mumps
'
,
'
superlu-dist
'
)
for
x
in
(
'
hdf5
'
,
'
hypre
'
,
'
mumps
'
,
'
superlu-dist
'
)
if
(
'
+
'
+
x
)
in
self
.
spec
]
if
errors
:
errors
=
[
'
incompatible variants given
'
]
+
errors
...
...
@@ -296,15 +296,18 @@ def install(self, spec, prefix):
'
--with-scalapack=0
'
])
# Activates library support if needed
# Activates library support if needed
(i.e. direct dependency)
for
library
in
(
'
cuda
'
,
'
metis
'
,
'
hypre
'
,
'
parmetis
'
,
'
mumps
'
,
'
trilinos
'
,
'
fftw
'
,
'
valgrind
'
):
# Cannot check `library in spec` because of transitive deps
# Cannot check variants because parmetis keys on +metis
library_requested
=
library
in
spec
.
dependencies_dict
()
options
.
append
(
'
--with-{library}={value}
'
.
format
(
library
=
library
,
value
=
(
'
1
'
if
'
+
'
+
library
in
spec
else
'
0
'
))
value
=
(
'
1
'
if
library
_requested
else
'
0
'
))
)
if
'
+
'
+
library
in
spec
:
if
library
_requested
:
options
.
append
(
'
--with-{library}-dir={path}
'
.
format
(
library
=
library
,
path
=
spec
[
library
].
prefix
)
...
...
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