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

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

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

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

  1. Thanks very much. Worked like a charm to solve the “cannot read file data: Is a directory” error with MKL 10.0.3.020 and NumPy 1.3.0. Much appreciated.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.