Summary: | dev-python/numpy-1.9.2[lapack] Intel MKL fatal error: Cannot load libmkl_avx2.so | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Tiziano Müller (RETIRED) <dev-zero> |
Component: | [OLD] Library | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | frp.bissey, python |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Tiziano Müller (RETIRED)
2015-08-03 11:53:44 UTC
I don't have MKL but it looks to me like `ld.so.conf` would need to be updated with the proper folder. Barring that, setting `LD_RUN_PATH` is a solution that would work with gnu and intel compilers (at least by the look of the page you linked). The problem with `LD_RUN_PATH` is that it will be discarded if there are any explicit stuff `-Wl,-rpath` at linking time. IBM xl fortran compilers do that to make sure you get the right runtime libraries by default making `LD_RUN_PATH` useless in that particular example. So I think you should have the right paths added in a file in `/etc/ld.so.conf.d/` have `ldconfig` run properly and it should work. ... and when selecting mkl64-dynamic-openmp for lapack/blas, it seems that the installed lapack library is completely ignored since none of the shared libraries link to mkl_rt/iomp as they should. (In reply to Francois Bissey from comment #1) > I don't have MKL but it looks to me like `ld.so.conf` would need to be > updated with the proper folder. Barring that, setting `LD_RUN_PATH` is a > solution that would work with gnu and intel compilers (at least by the look > of the page you linked). $ grep -i intel /etc/ld.so.conf /opt/intel/composerxe-2015_update3.3.187/compiler/lib/intel64 /opt/intel/composerxe-2015_update3.3.187/mpirt/lib/intel64 /opt/intel/composerxe-2015_update3.3.187/compiler/lib/ia32 /opt/intel/composerxe-2015_update3.3.187/mpirt/lib/ia32 /opt/intel/composerxe-2015.3.187/mkl/lib/intel64 /opt/intel/composerxe-2015.3.187/mkl/lib/ia32 > > The problem with `LD_RUN_PATH` is that it will be discarded if there are any > explicit stuff `-Wl,-rpath` at linking time. IBM xl fortran compilers do > that to make sure you get the right runtime libraries by default making > `LD_RUN_PATH` useless in that particular example. > > So I think you should have the right paths added in a file in > `/etc/ld.so.conf.d/` have `ldconfig` run properly and it should work. it is well possible that this is a problem with the Intel libraries themselves since a `strace` shows that the mentioned libraries are being successfully opened. I talked about /etc/ld.conf because it is a typical message for something not configured properly in there. Now I would be curious about that bit of strace output. What feels likely to me is that the version of the library found is not suitable (32bits instead of 64 for example) and is later rejected and the right one is not searched for somehow. |