-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libiomp5.so conflicts with openmp package #497
Comments
Hi @hubutui I think MKL-DNN doesn't install OMP runtimes. From documentation "Intel MKL-DNN uses OpenMP runtime library provided by the compiler." Could you please provide details on how you are building MKL-DNN? |
I install mkl-dnn from arch4edu repo, which uses PKGBUILD to build mkl-dnn. To reproduce:
Then we get a package file mkl-dnn-0.19-4-x86_64-build.log is the build log, corresponding to the |
according to #102, mklml is a subset of mkl, which is provided in the release page as lib tarball. So, if I build mkl-dnn linking to mklml, then in the |
@hubutui, you are right, when Intel MKL-DNN v0.x is built with libmklml it does install OpenMP runtime into /usr/lib. This should not be the case as OpenMP runtime is shared dependency and should be managed as such. The workaround implemented in PKGBUILD makes perfect sense. This is not an issue with v1.0 as it does not install OpenMP runtime. |
Closing as the issue is resolved in v0.20. Please let me know if you want us to do any changes to v0.20. |
Hey, it seems that both mkl-dnn and openmp will install
libiomp5.so
into system as/usr/lib/libiomp5.so
, which leads to file conflicts. Any suggestion to deal with this confilict? According to https://github.com/llvm/llvm-project/blob/master/openmp/runtime/CMakeLists.txt#L360,libiomp5.so
is just a soft link tolibomp.so
for backward compatibility. Not sure if I build withLIBOMP_INSTALL_ALIASES=OFF
would break anything.The text was updated successfully, but these errors were encountered: