diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-08-08 10:50:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 10:50:06 -0500 |
commit | e3a031db3c723ca568ea308071f88c009675e152 (patch) | |
tree | 2433fc6bff66566a0cb51c0a8ccb4e7d23937dbb /numpy | |
parent | 31a95d903f8775a5781c8879959b2dc2e8827365 (diff) | |
parent | 2088e1cdcfcf4972a664963ac8979d7138422231 (diff) | |
download | numpy-e3a031db3c723ca568ea308071f88c009675e152.tar.gz |
Merge pull request #7908 from xabellan/master
BLD: Fixed detection for recent MKL versions
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/system_info.py | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index f77d1f3ee..014223b74 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -962,7 +962,7 @@ class djbfft_info(system_info): class mkl_info(system_info): section = 'mkl' dir_env_var = 'MKLROOT' - _lib_mkl = ['mkl', 'vml', 'guide'] + _lib_mkl = ['mkl_rt'] def get_mkl_rootdir(self): mklroot = os.environ.get('MKLROOT', None) @@ -997,15 +997,12 @@ class mkl_info(system_info): system_info.__init__(self) else: from .cpuinfo import cpu - l = 'mkl' # use shared library if cpu.is_Itanium(): plt = '64' - elif cpu.is_Xeon(): + elif cpu.is_Intel() and cpu.is_64bit(): plt = 'intel64' else: plt = '32' - if l not in self._lib_mkl: - self._lib_mkl.insert(0, l) system_info.__init__( self, default_lib_dirs=[os.path.join(mklroot, 'lib', plt)], @@ -1030,20 +1027,7 @@ class mkl_info(system_info): class lapack_mkl_info(mkl_info): - - def calc_info(self): - mkl = get_info('mkl') - if not mkl: - return - if sys.platform == 'win32': - lapack_libs = self.get_libs('lapack_libs', ['mkl_lapack']) - else: - lapack_libs = self.get_libs('lapack_libs', - ['mkl_lapack32', 'mkl_lapack64']) - - info = {'libraries': lapack_libs} - dict_append(info, **mkl) - self.set_info(**info) + pass class blas_mkl_info(mkl_info): |