oneDNN: compat_libs does not look correct when building shared lib
Similar to https://github.com/oneapi-src/oneDNN/issues/743
In Linux, if we are building oneDNN as shared lib, it will generate a dead symlink libmkldnn.a that points to nowhere.
If we are building shared lib in windows, it will mistakenly copy the non-existing bin/dnnl.lib to bin/mkldnn.lib, but actually dnnl.lib was in /lib
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (9 by maintainers)
It’s may or may not be oneDNN’s problem. I’m looking into it. 🤔️
If
libdnnl.sois built in a non-standard path, thatlibmkldnn.socould point to non-existing dependency (by default, it just points to./libdnnl.sothat is located somewhere else). In turn this makes the install fail, as copying the invalid symlink leads tocpfailure (unless-Poption is passed, that cmake doesn’t do).@pinzhenx, is this the behavior you observe? If so, could you please check the following patch for Linux?
The Windows part of this issue is resolved by #806. Do we still need to figure out what’s happening on Linux?
Still having a standalone reproducer would be nice to have. Otherwise it is unclear whom to blame 😃 Maybe this is due to the way oneDNN is integrated to pyTorch.