Skip to content

Commit

Permalink
[Hardware][PowerPC] Make oneDNN dependency optional for Power (#9039)
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 authored Oct 4, 2024
1 parent 36eecfb commit e5dc713
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)
list(APPEND LIBS numa)

# Appending the dnnl library for the AVX2 and AVX512, as it is not utilized by Power architecture.
if (AVX2_FOUND OR AVX512_FOUND)
list(APPEND LIBS dnnl)
endif()

#
# _C extension
Expand Down

0 comments on commit e5dc713

Please sign in to comment.