Skip to content
Snippets Groups Projects
Commit 6d20e938 authored by Sajid Ali's avatar Sajid Ali Committed by Satish Balay
Browse files

petsc: add +knl variant

parent f8da8dbd
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment