You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/cpu_extension.cmake
+47-22Lines changed: 47 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,11 @@ if (AVX512_FOUND AND NOT AVX512_DISABLED)
140
140
set(ENABLE_AVX512VNNI OFF)
141
141
message(WARNING "Disable AVX512-VNNI ISA support, no avx512_vnni found in local CPU flags."" If cross-compilation is required, please set env VLLM_CPU_AVX512VNNI=1.")
142
142
endif()
143
-
143
+
144
144
elseif (AVX2_FOUND)
145
145
list(APPEND CXX_COMPILE_FLAGS "-mavx2")
146
146
message(WARNING "vLLM CPU backend using AVX2 ISA")
147
-
147
+
148
148
elseif (POWER9_FOUND OR POWER10_FOUND OR POWER11_FOUND)
149
149
message(STATUS"PowerPC detected")
150
150
if (POWER9_FOUND)
@@ -167,9 +167,9 @@ elseif (ASIMD_FOUND)
167
167
add_compile_definitions(ARM_BF16_SUPPORT)
168
168
else()
169
169
message(WARNING "BF16 functionality is not available")
170
-
set(MARCH_FLAGS "-march=armv8.2-a+dotprod+fp16")
170
+
set(MARCH_FLAGS "-march=armv8.2-a+dotprod+fp16")
171
171
endif()
172
-
list(APPEND CXX_COMPILE_FLAGS ${MARCH_FLAGS})
172
+
list(APPEND CXX_COMPILE_FLAGS ${MARCH_FLAGS})
173
173
elseif (S390_FOUND)
174
174
message(STATUS"S390 detected")
175
175
# Check for S390 VXE support
@@ -191,9 +191,33 @@ endif()
191
191
192
192
# Build oneDNN for GEMM kernels (only for x86-AVX512 /ARM platforms)
193
193
if ((AVX512_FOUND ANDNOT AVX512_DISABLED) OR (ASIMD_FOUND ANDNOT APPLE_SILICON_FOUND) OR POWER9_FOUND OR POWER10_FOUND OR POWER11_FOUND)
0 commit comments