Skip to content

Commit

Permalink
Make oneDNN dependency optional for Power
Browse files Browse the repository at this point in the history
Signed-off-by: Varad Ahirwadkar <varad.ahirwadkar1@ibm.com>
  • Loading branch information
varad-ahirwadkar committed Oct 2, 2024
1 parent 35bd215 commit 4640a61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/cpu_extension.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ endif()

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

list(APPEND LIBS dnnl numa)
if (POWER9_FOUND OR POWER10_FOUND)
message(WARNING "Skipping oneDNN for PowerPC.")
list(APPEND LIBS numa)
else()
list(APPEND LIBS dnnl numa)
endif()

#
# _C extension
Expand Down

0 comments on commit 4640a61

Please sign in to comment.