mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	feat(ggml-cpu): enable z17 compile (#13182)
z17 compilation requires GCC 15.1.0 and onwards Signed-off-by: Aaron Teo <aaron.teo1@ibm.com>
This commit is contained in:
		| @@ -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.") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aaron Teo
					Aaron Teo