summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-11-12 11:16:09 -0600
committerGitHub <noreply@github.com>2021-11-12 11:16:09 -0600
commit8d06abb8edad3079c2b11363f1798a7f652c2c83 (patch)
treea8fe318c18a328d3e443b09a49c3e6770ca05861 /var
parent77203c940c2c1d297034d6e63358f4b8bd5b8c33 (diff)
downloadspack-8d06abb8edad3079c2b11363f1798a7f652c2c83.tar.gz
spack-8d06abb8edad3079c2b11363f1798a7f652c2c83.tar.bz2
spack-8d06abb8edad3079c2b11363f1798a7f652c2c83.tar.xz
spack-8d06abb8edad3079c2b11363f1798a7f652c2c83.zip
py-numpy: add support for intel-oneapi-mkl (#27390)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-numpy/package.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py
index afdcfa74d3..4d1cb3e9ca 100644
--- a/var/spack/repos/builtin/packages/py-numpy/package.py
+++ b/var/spack/repos/builtin/packages/py-numpy/package.py
@@ -207,7 +207,9 @@ class PyNumpy(PythonPackage):
# Tell numpy where to find BLAS/LAPACK libraries
with open('site.cfg', 'w') as f:
- if '^intel-mkl' in spec or '^intel-parallel-studio+mkl' in spec:
+ if '^intel-mkl' in spec or \
+ '^intel-parallel-studio+mkl' or \
+ '^intel-oneapi-mkl' in spec:
f.write('[mkl]\n')
# FIXME: as of @1.11.2, numpy does not work with separately
# specified threading and interface layers. A workaround is a
@@ -300,7 +302,8 @@ class PyNumpy(PythonPackage):
if 'blas' not in spec:
blas = ''
elif spec['blas'].name == 'intel-mkl' or \
- spec['blas'].name == 'intel-parallel-studio':
+ spec['blas'].name == 'intel-parallel-studio' or \
+ spec['blas'].name == 'intel-oneapi-mkl':
blas = 'mkl'
elif spec['blas'].name == 'blis':
blas = 'blis'
@@ -319,7 +322,8 @@ class PyNumpy(PythonPackage):
if 'lapack' not in spec:
lapack = ''
elif spec['lapack'].name == 'intel-mkl' or \
- spec['lapack'].name == 'intel-parallel-studio':
+ spec['lapack'].name == 'intel-parallel-studio' or \
+ spec['lapack'].name == 'intel-oneapi-mkl':
lapack = 'mkl'
elif spec['lapack'].name == 'openblas':
lapack = 'openblas'