Tag Archives: Dynamic library

A quick hack to use the MKL with numpy/scipy on Linux

I’ve promised to make an update whenever I would find a solution to the problem I had some months ago when I tried to use the latest MKL with numpy. Well, there was a simple hack that did the trick. It is far from being perfect, but at least, the tests pass now.
So the only thing you have to do is to export the LD_PRELOAD variable:

export LD_PRELOAD=/path/to/the/MKL/lib/libmkl_core.so

[Updated] I used the latest MKL with Numpy and…

I’m trying to use the MKL with some programs and libraries, but I encountered something really strange and I’m not alone.
First, what is i_free ? Accoding to Intel, it’s their way to handle memory allocation and deallocation. They are only pointers to the actual memory functions so as to let the user decide if he wants a custom memory handler. Since 10.0.3, Intel changed their model, and the trouble begins.
Continue reading [Updated] I used the latest MKL with Numpy and…