Skip to content

Commit ea756ae

Browse files
Make oneDNN dependency optional for Power
Signed-off-by: Varad Ahirwadkar <[email protected]>
1 parent 35bd215 commit ea756ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/cpu_extension.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ endif()
8484

8585
message(STATUS "CPU extension compile flags: ${CXX_COMPILE_FLAGS}")
8686

87-
list(APPEND LIBS dnnl numa)
87+
list(APPEND LIBS numa)
88+
89+
if (NOT POWER9_FOUND AND NOT POWER10_FOUND)
90+
list(APPEND LIBS dnnl)
91+
endif()
8892

8993
#
9094
# _C extension

0 commit comments

Comments
 (0)