|
@@ -308,6 +308,10 @@ function(ggml_add_cpu_backend_variant tag_name)
|
|
|
set(GGML_INTERNAL_${feat} ON)
|
|
set(GGML_INTERNAL_${feat} ON)
|
|
|
endforeach()
|
|
endforeach()
|
|
|
elseif (GGML_SYSTEM_ARCH STREQUAL "s390x")
|
|
elseif (GGML_SYSTEM_ARCH STREQUAL "s390x")
|
|
|
|
|
+ foreach (feat VXE2 NNPA)
|
|
|
|
|
+ set(GGML_INTERNAL_${feat} OFF)
|
|
|
|
|
+ endforeach()
|
|
|
|
|
+
|
|
|
foreach (feat ${ARGN})
|
|
foreach (feat ${ARGN})
|
|
|
set(GGML_INTERNAL_${feat} ON)
|
|
set(GGML_INTERNAL_${feat} ON)
|
|
|
endforeach()
|
|
endforeach()
|
|
@@ -377,9 +381,8 @@ if (GGML_CPU_ALL_VARIANTS)
|
|
|
endif()
|
|
endif()
|
|
|
elseif (GGML_SYSTEM_ARCH STREQUAL "s390x")
|
|
elseif (GGML_SYSTEM_ARCH STREQUAL "s390x")
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
- ggml_add_cpu_backend_variant(s390x_z15 Z15 VXE)
|
|
|
|
|
- # ggml_add_cpu_backend_variant(s390x_z16 Z16 VXE)
|
|
|
|
|
- # ggml_add_cpu_backend_variant(s390x_z17 Z17 VXE)
|
|
|
|
|
|
|
+ ggml_add_cpu_backend_variant(z15 Z15 VXE2)
|
|
|
|
|
+ ggml_add_cpu_backend_variant(z16 Z16 VXE2 NNPA)
|
|
|
else()
|
|
else()
|
|
|
message(FATAL_ERROR "Unsupported s390x target OS: ${CMAKE_SYSTEM_NAME}")
|
|
message(FATAL_ERROR "Unsupported s390x target OS: ${CMAKE_SYSTEM_NAME}")
|
|
|
endif()
|
|
endif()
|