From 4640a6133acd08c1e0614de5fd3178d54c82a110 Mon Sep 17 00:00:00 2001 From: Varad Ahirwadkar Date: Wed, 2 Oct 2024 12:05:17 +0530 Subject: [PATCH] Make oneDNN dependency optional for Power Signed-off-by: Varad Ahirwadkar --- cmake/cpu_extension.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/cpu_extension.cmake b/cmake/cpu_extension.cmake index 3c474bd58d04e..025d868ecc0f5 100644 --- a/cmake/cpu_extension.cmake +++ b/cmake/cpu_extension.cmake @@ -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