petsc: add +knl variant
This commit is contained in:
parent
f8da8dbd0e
commit
6d20e938da
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue