We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2bb34 commit 44cb7ceCopy full SHA for 44cb7ce
csrc/gpu/CMakeLists.txt
@@ -257,12 +257,12 @@ endif()
257
258
set(LIBRARIES_INSTALL)
259
260
-install(TARGETS ${ONEDNN_LIBRARY}
261
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
262
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
263
-list(APPEND LIBRARIES_INSTALL ${ONEDNN_LIBRARY})
264
-
265
if(BUILD_SEPARATE_OPS)
+ # oneDNN is linked statically if not BUILD_SEPARATE_OPS, otherwise is linked dynamically
+ install(TARGETS ${ONEDNN_LIBRARY}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
+ list(APPEND LIBRARIES_INSTALL ${ONEDNN_LIBRARY})
266
foreach(op_lib ${IPEX_GPU_OP_LIBRARIES})
267
install(TARGETS ${op_lib}
268
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0 commit comments