mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-05-09 20:13:14 +00:00
feat(ggml-cpu): enable z17 compile (llama/13182)
z17 compilation requires GCC 15.1.0 and onwards Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
parent
1543a3600c
commit
dc288f84cd
@ -352,10 +352,14 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
|
|||||||
# TODO: Separation to determine activation of VX/VXE/VXE2
|
# TODO: Separation to determine activation of VX/VXE/VXE2
|
||||||
if (${S390X_M} MATCHES "8561|8562")
|
if (${S390X_M} MATCHES "8561|8562")
|
||||||
message(STATUS "z15 target")
|
message(STATUS "z15 target")
|
||||||
list(APPEND ARCH_FLAGS -march=z15 -mtune=z15)
|
list(APPEND ARCH_FLAGS -march=z15)
|
||||||
elseif (${S390X_M} MATCHES "3931")
|
elseif (${S390X_M} MATCHES "3931")
|
||||||
message(STATUS "z16 target")
|
message(STATUS "z16 target")
|
||||||
list(APPEND ARCH_FLAGS -march=z16 -mtune=z16)
|
list(APPEND ARCH_FLAGS -march=z16)
|
||||||
|
elseif (${S390X_M} MATCHES "9175|9176")
|
||||||
|
# NOTE: Only available from GCC 15.1.0 onwards. Any z17 machine with compile issues must first verify their GCC version.
|
||||||
|
message(STATUS "z17 target")
|
||||||
|
list(APPEND ARCH_FLAGS -march=z17)
|
||||||
else()
|
else()
|
||||||
message(STATUS "Unknown target")
|
message(STATUS "Unknown target")
|
||||||
message(WARNING "Unknown target. If you are compiling for z14 and earlier, you might have to add -DGGML_VXE=OFF.")
|
message(WARNING "Unknown target. If you are compiling for z14 and earlier, you might have to add -DGGML_VXE=OFF.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user