E57C Merge pull request #7908 from xabellan/master · numpy/numpy@e3a031d · GitHub
[go: up one dir, main page]

Skip to content

Commit e3a031d

Browse files
authored
Merge pull request #7908 from xabellan/master
BLD: Fixed detection for recent MKL versions
2 parents 31a95d9 + 2088e1c commit e3a031d

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

numpy/distutils/system_info.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ def calc_info(self):
962962
class mkl_info(system_info):
963963
section = 'mkl'
964964
dir_env_var = 'MKLROOT'
965-
_lib_mkl = ['mkl', 'vml', 'guide']
965+
_lib_mkl = ['mkl_rt']
966966

967967
def get_mkl_rootdir(self):
968968
mklroot = os.environ.get('MKLROOT', None)
@@ -997,15 +997,12 @@ def __init__(self):
997997
system_info.__init__(self)
998998
else:
999999
from .cpuinfo import cpu
1000-
l = 'mkl' # use shared library
10011000
if cpu.is_Itanium():
10021001
plt = '64'
1003-
elif cpu.is_Xeon():
1002+
elif cpu.is_Intel() and cpu.is_64bit():
10041003
plt = 'intel64'
10051004
else:
10061005
plt = '32'
1007-
if l not in self._lib_mkl:
1008-
self._lib_mkl.insert(0, l)
10091006
system_info.__init__(
10101007
self,
10111008
default_lib_dirs=[os.path.join(mklroot, 'lib', plt)],
@@ -1030,20 +1027,7 @@ def calc_info(self):
10301027

10311028

10321029
class lapack_mkl_info(mkl_info):
1033-
1034-
def calc_info(self):
1035-
mkl = get_info('mkl')
1036-
if not mkl:
1037-
return
1038-
if sys.platform == 'win32':
1039-
lapack_libs = self.get_libs('lapack_libs', ['mkl_lapack'])
1040-
else:
1041-
lapack_libs = self.get_libs('lapack_libs',
1042-
['mkl_lapack32', 'mkl_lapack64'])
1043-
1044-
info = {'libraries': lapack_libs}
1045-
dict_append(info, **mkl)
1046-
self.set_info(**info)
1030+
pass
10471031

10481032

10491033
class blas_mkl_info(mkl_info):

0 commit comments

Comments
 (0)
0