summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSajid Ali <30510036+s-sajid-ali@users.noreply.github.com>2019-02-28 11:07:04 -0600
committerSatish Balay <balay@mcs.anl.gov>2019-02-28 11:07:04 -0600
commit6d20e938dae1a25b4e4088cad481f16f90ef2b12 (patch)
treedf29e1518fdeec5c506bd4310e67ce9bdf02d79e
parentf8da8dbd0e52499fe7a27d1a7d8cd6fe49313918 (diff)
downloadspack-6d20e938dae1a25b4e4088cad481f16f90ef2b12.tar.gz
spack-6d20e938dae1a25b4e4088cad481f16f90ef2b12.tar.bz2
spack-6d20e938dae1a25b4e4088cad481f16f90ef2b12.tar.xz
spack-6d20e938dae1a25b4e4088cad481f16f90ef2b12.zip
petsc: add +knl variant
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index c1d452f4f1..b9b20be8cb 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -81,7 +81,8 @@ class Petsc(Package):
multi=False)
variant('suite-sparse', default=False,
description='Activates support for SuiteSparse')
-
+ variant('knl', default=False,
+ description='Build for KNL')
variant('X', default=False,
description='Activate X support')
@@ -225,6 +226,9 @@ class Petsc(Package):
'--with-blas-lapack-lib=%s' % lapack_blas.joined()
])
+ if '+knl' in spec:
+ options.append('--with-avx-512-kernels')
+ options.append('--with-memalign=64')
if '+X' in spec:
options.append('--with-x=1')
else: