forked from oneapi-src/oneDNN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: allow using compiler's OpenMP RT
Pass `-DMKLDNN_THREADING=OMP:COMP` to cmake for that. This is one of the steps required to address oneapi-src#312 issue. By chance, this fixes oneapi-src#313. The reason: we used ?undocumented? cmake flag [1] to prevent linking with compilers OMP RT. Apparently this flag stopped working for recent cmake versions. The new workaround is: `-Wl,--as-needed` for GCC and `/full/path/to/libiomp5.so` for clang. How tricky... :( [1] CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS f: build: allow using compiler's OpenMP RT
- Loading branch information
Fomenko, Evarist M
committed
Oct 3, 2018
1 parent
72dcfe8
commit a17db4a
Showing
5 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters