Skip to content

Commit

Permalink
[Hardware][PowerPC] Make oneDNN dependency optional for Power (vllm-p…
Browse files Browse the repository at this point in the history
…roject#9039)

Signed-off-by: Varad Ahirwadkar <varad.ahirwadkar1@ibm.com>
Signed-off-by: Alvant <alvasian@yandex.ru>
  • Loading branch information
varad-ahirwadkar authored and Alvant committed Oct 26, 2024
1 parent 69239fd commit 8877bd8
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 8877bd8

Please sign in to comment.