Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Access violation in mkl_set_interface_layer with Python 3

ydl
初学者
2,716 次查看

Using mkl_set_interface_layer from Python 3 on Windows 10 with the latest MKL installed gives an access violation. Specifically this code:

from ctypes import *
mkl = cdll.LoadLibrary('mkl_rt')
mkl.mkl_set_interface_layer(c_int(1))

produces this error:

OSError: exception: access violation reading 0x0000000000000001

Note using c_int(0) in place of c_int(1) gives an analogous error. Variables in the console are set using mklvars.bat (notably the PATH variables are set properly), and I have checked that several of the cblas_* functions are working. Is there some library I have to load, or specify a calling convention?

Thanks.

0 项奖励
4 回复数
Gennady_F_Intel
主持人
2,716 次查看

>> the latest MKL -- do you mean MKL v. 2018 u2?  please quick check mkl_version.h header to take this info.

 

0 项奖励
ydl
初学者
2,716 次查看

Yes, I mean that one. Specifically, I have, in mkl_version.h,

#define __INTEL_MKL_BUILD_DATE 20180128

#define __INTEL_MKL__ 2018
#define __INTEL_MKL_MINOR__ 0
#define __INTEL_MKL_UPDATE__ 2

#define INTEL_MKL_VERSION 20180002

 

0 项奖励
Gennady_F_Intel
主持人
2,716 次查看

yes, we confirmed the problem on our side and will work on this issue. We will keep you posted.

0 项奖励
ydl
初学者
2,716 次查看

Thanks! Any update on this?

0 项奖励
回复