File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -352,10 +352,14 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
352
352
# TODO: Separation to determine activation of VX/VXE/VXE2
353
353
if (${S390X_M} MATCHES "8561|8562" )
354
354
message (STATUS "z15 target" )
355
- list (APPEND ARCH_FLAGS -march=z15 -mtune=z15 )
355
+ list (APPEND ARCH_FLAGS -march=z15)
356
356
elseif (${S390X_M} MATCHES "3931" )
357
357
message (STATUS "z16 target" )
358
- list (APPEND ARCH_FLAGS -march=z16 -mtune=z16)
358
+ list (APPEND ARCH_FLAGS -march=z16)
359
+ elseif (${S390X_M} MATCHES "9175|9176" )
360
+ # NOTE: Only available from GCC 15.1.0 onwards. Any z17 machine with compile issues must first verify their GCC version.
361
+ message (STATUS "z17 target" )
362
+ list (APPEND ARCH_FLAGS -march=z17)
359
363
else ()
360
364
message (STATUS "Unknown target" )
361
365
message (WARNING "Unknown target. If you are compiling for z14 and earlier, you might have to add -DGGML_VXE=OFF." )
You can’t perform that action at this time.
0 commit comments