petsc: add +knl variant

This commit is contained in:
Sajid Ali 2019-02-28 11:07:04 -06:00 committed by Satish Balay
parent f8da8dbd0e
commit 6d20e938da

View file

@ -81,7 +81,8 @@ class Petsc(Package):
multi=False) multi=False)
variant('suite-sparse', default=False, variant('suite-sparse', default=False,
description='Activates support for SuiteSparse') description='Activates support for SuiteSparse')
variant('knl', default=False,
description='Build for KNL')
variant('X', default=False, variant('X', default=False,
description='Activate X support') description='Activate X support')
@ -225,6 +226,9 @@ def install(self, spec, prefix):
'--with-blas-lapack-lib=%s' % lapack_blas.joined() '--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: if '+X' in spec:
options.append('--with-x=1') options.append('--with-x=1')
else: else: