From 6d20e938dae1a25b4e4088cad481f16f90ef2b12 Mon Sep 17 00:00:00 2001 From: Sajid Ali <30510036+s-sajid-ali@users.noreply.github.com> Date: Thu, 28 Feb 2019 11:07:04 -0600 Subject: [PATCH] petsc: add +knl variant --- var/spack/repos/builtin/packages/petsc/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ def install(self, spec, prefix): '--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: