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