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 3, 2024
1 parent 35bd215 commit ea756ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/cpu_extension.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ endif()

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

list(APPEND LIBS dnnl numa)
list(APPEND LIBS numa)

if (NOT POWER9_FOUND AND NOT POWER10_FOUND)
list(APPEND LIBS dnnl)
endif()

#
# _C extension
Expand Down

0 comments on commit ea756ae

Please sign in to comment.