Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Cannot link against MKL installed from pip

$
0
0

In Linux(Ubuntu and OpenSuSe), I've tried installing MKL through pip:
 

python3 -m pip install mkl-devel --user

 

sudo pip3 install mkl-devel

Which will install the headers under

$HOME/.local/include

 and shared objects under

$HOME/.local/lib

But then I try compiling some file against it using gcc or clang with these arguments:

g++ the_file.cpp I$HOME/.local/include -l:$HOME/.local/lib/libmkl_rt.so

And get the following error:

/usr/bin/ld: cannot find -l:/home/david/.local/libmkl_rt.so

 

Even though the file exists and I've set all permissions for everyone:

ls -s /home/david/.local/libmkl_rt.so

Shows these permissions:

-rwxrwxrwx 1

 

TCE Level: 

TCE Open Date: 

Tuesday, January 21, 2020 - 10:52

Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>