summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHector <10837193+he-b@users.noreply.github.com>2020-03-10 20:41:00 -0500
committerGitHub <noreply@github.com>2020-03-10 20:41:00 -0500
commit6d8cd446c5c7cba12b82bf1f297e86bfa9104156 (patch)
tree8e2c1f3d9a94400c58db29a2c6b456066cde21d5 /var
parent8ac06ece3d6a1cb700d7f2dd2da58a3f7f995233 (diff)
downloadspack-6d8cd446c5c7cba12b82bf1f297e86bfa9104156.tar.gz
spack-6d8cd446c5c7cba12b82bf1f297e86bfa9104156.tar.bz2
spack-6d8cd446c5c7cba12b82bf1f297e86bfa9104156.tar.xz
spack-6d8cd446c5c7cba12b82bf1f297e86bfa9104156.zip
Add valgrind variant to petsc (#15427)
* Add PETSc valgrind dependency * Remove +debug on valgrind dependency * enh variant description
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 88332caec9..ddee34e187 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -99,6 +99,8 @@ class Petsc(Package):
description='Activate X support')
variant('batch', default=False,
description='Enable when mpiexec is not available to run binaries')
+ variant('valgrind', default=False,
+ description='Enable Valgrind Client Request mechanism')
# 3.8.0 has a build issue with MKL - so list this conflict explicitly
conflicts('^intel-mkl', when='@3.8.0')
@@ -146,6 +148,7 @@ class Petsc(Package):
depends_on('hdf5+mpi+hl+fortran', when='+hdf5+mpi')
depends_on('zlib', when='+hdf5')
depends_on('parmetis', when='+metis+mpi')
+ depends_on('valgrind', when='+valgrind')
# Hypre does not support complex numbers.
# Also PETSc prefer to build it without internal superlu, likely due to
# conflict in headers see
@@ -280,7 +283,7 @@ class Petsc(Package):
# Activates library support if needed
for library in ('metis', 'hdf5', 'hypre', 'parmetis',
- 'mumps', 'trilinos', 'fftw'):
+ 'mumps', 'trilinos', 'fftw', 'valgrind'):
options.append(
'--with-{library}={value}'.format(
library=library, value=('1' if library in spec else '0'))