rust-math / intel-mkl-src

Redistribute Intel MKL as a crate
Other
77 stars 22 forks source link

Cannot seek `mkl-dynamic-*-iomp` when Intel-MKL is not located in `/opt/intel` #111

Open Ionizing opened 11 months ago

Ionizing commented 11 months ago

Hi, I just found intel-mkl-tool may not work well with libiomp5.so when Intel MKL suite is not installed to /opt/intel.

If I didn't misunderstand the code, the function seek_directory just finds the paths of MKL libraries with given root_dir. When Intel MKL suite is installed to /opt/intel, seek_directory just can find the correct path of libiomp5.so since Library::new() already includes /opt/intel, and everything works well. However, libiomp5.so doesn't lie in MKLROOT, but in oneapi/compiler/${version}/${platform}/compiler/lib, leading to the failure.

There might be two possible solution:

I can make an PR to fix this but it would be better to fix it by the author since my coding style may not match this repo very well....