]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml: enable PowerPC backend variants on AIX (#25983)
authorshalinib-ibm <redacted>
Wed, 22 Jul 2026 09:26:40 +0000 (14:56 +0530)
committerGitHub <redacted>
Wed, 22 Jul 2026 09:26:40 +0000 (17:26 +0800)
* ggml: enable PowerPC backend variants on AIX

Allow the PowerPC CPU backend variants to be built on AIX by extending the platform check in the CMake configuration. This reuses the existing PowerPC backend implementations without changing their behavior.

Also fix a missing semicolon in the PowerPC Q0 matmul implementation.

* Fix missing semicolon in sgemm.cpp

ggml/src/CMakeLists.txt
ggml/src/ggml-cpu/llamafile/sgemm.cpp

index 11583474a9a976268d84407a003476659202332e..82e9480c2f240a66d2269198d5340b4e8565da3a 100644 (file)
@@ -430,7 +430,7 @@ if (GGML_CPU_ALL_VARIANTS)
             message(FATAL_ERROR "Unsupported ARM target OS: ${CMAKE_SYSTEM_NAME}")
         endif()
     elseif (GGML_SYSTEM_ARCH STREQUAL "PowerPC")
-        if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+        if (CMAKE_SYSTEM_NAME MATCHES "Linux|AIX")
             ggml_add_cpu_backend_variant(power0)
             ggml_add_cpu_backend_variant(power7_1       POWER7)
             ggml_add_cpu_backend_variant(power7_2       POWER7  VSX)
index 5efaaa5b2a06945eb9929b84606f9dcb301b00fd..23bcd54c122a0b330b682091d3831525bc519b0a 100644 (file)
@@ -2329,7 +2329,7 @@ class tinyBLAS_Q0_PPC {
         mc = 32;
         nc = 32;
         kc = 32;
-        n_chunk = 32
+        n_chunk = 32;
     #endif
         int64_t n_aligned = 0;
         if (n % n_chunk == 0) {