
numexpr - issue #95
Solve for MKLGetVersionString while using Intel MKL VML support in numexpr-2.0.1
Problem caused by: 1. function MKLGetVersionString(buf, len) line 2154 in interpreter.c 2. using VML in Intel MKL version 11 3. site.cfg below(i just copied the same setting used in numpy & scipy)
[mkl] library_dirs = /opt/intel/composerxe/mkl/lib/intel64 include_dirs = /opt/intel/composerxe/mkl/include mkl_libs = mkl_intel_lp64, mkl_gf_lp64, mkl_intel_thread, mkl_core, mkl_blas95_lp64, mkl_lapack95_lp64, mkl_avx, mkl_vml_avx, mkl_rt
Error report from ipython when importing numexpr:
In [1]: import numexpr
ImportError Traceback (most recent call last) <ipython-input-1-f31799291f6e> in <module>() ----> 1 import numexpr
/usr/local/lib/python2.7/dist-packages/numexpr-2.0.1-py2.7-linux-x86_64.egg/numexpr/init.py in <module>() 36 37 import os.path ---> 38 from numexpr.expressions import E 39 from numexpr.necompiler import NumExpr, disassemble, evaluate 40 from numexpr.tests import test, print_versions
/usr/local/lib/python2.7/dist-packages/numexpr-2.0.1-py2.7-linux-x86_64.egg/numexpr/expressions.py in <module>() 29 kind_rank = ['bool', 'int', 'long', 'float', 'double', 'complex', 'none'] 30 ---> 31 from numexpr import interpreter 32 33 class Expression(object):
ImportError: /usr/local/lib/python2.7/dist-packages/numexpr-2.0.1-py2.7-linux-x86_64.egg/numexpr/interpreter.so: undefined symbol: MKLGetVersionString
Software use - numexpr-2.0.1 - Intel MKL 11 - Ubuntu 12.04
Solution - Solved by comment the MKLGetVersionString line 2154 in interpreter.c After that numexpr still working fine with Intel MKL VML support.
Comment #1
Posted on Apr 26, 2013 by Quick ElephantNow, MKL_Get_Version_String
is used instead (thanks to Christopher Gohlke). Closing.
Status: Fixed
Labels:
Type-Defect
Priority-Medium