We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b05bf2f commit fcd55ceCopy full SHA for fcd55ce
cmake/cpu_extension.cmake
@@ -84,7 +84,12 @@ endif()
84
85
message(STATUS "CPU extension compile flags: ${CXX_COMPILE_FLAGS}")
86
87
-list(APPEND LIBS dnnl numa)
+list(APPEND LIBS numa)
88
+
89
+# Appending the dnnl library for the AVX2 and AVX512, as it is not utilized by Power architecture.
90
+if (AVX2_FOUND OR AVX512_FOUND)
91
+ list(APPEND LIBS dnnl)
92
+endif()
93
94
#
95
# _C extension
0 commit comments