Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
16 Views

Access violation in mkl_set_interface_layer with Python 3

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 Kudos
4 Replies
Highlighted
Moderator
16 Views

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

 

0 Kudos
Highlighted
Beginner
16 Views

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 Kudos
Highlighted
Moderator
16 Views

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

0 Kudos
Highlighted
Beginner
16 Views

Thanks! Any update on this?

0 Kudos