]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci: fix thread sanitizer + remove ccache (#26927)
authorEve <redacted>
Wed, 12 Aug 2026 16:01:12 +0000 (16:01 +0000)
committerGitHub <redacted>
Wed, 12 Aug 2026 16:01:12 +0000 (19:01 +0300)
* test address on Intel-LNL-U7-258V

* retry

* run address on github

* use native build for cpu

* this should be runnable everywhere multicore

* disable ccache

---------

Co-authored-by: Sigbjørn Skjæret <redacted>
.github/workflows/build-cmake-pkg.yml
.github/workflows/build-cpu.yml
.github/workflows/build-sanitize.yml

index a958870de3d602c3a27cb44ef92c9545c005d1c2..0e4069ce35264dcdce65027047d41d2ca8cf8bce 100644 (file)
@@ -5,7 +5,7 @@ on:
 
 jobs:
   linux:
-    runs-on: [self-hosted, Linux, CPU]
+    runs-on: [self-hosted, Linux]
     steps:
       - uses: actions/checkout@v6
         with:
@@ -23,7 +23,7 @@ jobs:
                 -DLLAMA_BUILD_APP=OFF \
                 -DLLAMA_BUILD_IS_DEV=OFF \
                 -DCMAKE_BUILD_TYPE=Release
-          cmake --build build --config Release
+          cmake --build build --config Release -j $(nproc)
           cmake --install build --prefix "$PREFIX" --config Release
 
           export LLAMA_CONFIG="$PREFIX"/lib/cmake/llama/llama-config.cmake
@@ -54,4 +54,4 @@ jobs:
 
           cd examples/simple-cmake-pkg
           cmake -S . -B build -DCMAKE_PREFIX_PATH="$PREFIX"/lib/cmake
-          cmake --build build
+          cmake --build build -j $(nproc)
index 57622e1d4507c4bc58653417489ee07a898bfdcb..df70f4d10bc620110480ae428423190e0a814bea 100644 (file)
@@ -94,6 +94,7 @@ jobs:
         id: cmake_build
         run: |
           cmake -B build \
+            -DGGML_NATIVE=OFF \
             -DLLAMA_FATAL_WARNINGS=ON \
             -DGGML_RPC=ON \
             -DGGML_NATIVE=OFF
index 9654cb4e4d9193499c853d3973ae6c1329f16de2..974af62eb2e6a8a9bffdeb26e0ffc5562c3c3cdb 100644 (file)
@@ -39,9 +39,9 @@ jobs:
     strategy:
       matrix:
         include:
+        # thread and address doesn't run properly on some self hosted machines, so run it on Github instead
         - sanitizer: ADDRESS
-          machine: [self-hosted, X64, Linux]
-        # thread doesn't run properly on some self hosted machines, so run it on Github instead
+          machine: ubuntu-24.04
         - sanitizer: THREAD
           machine: ubuntu-24.04
         - sanitizer: UNDEFINED
@@ -54,14 +54,14 @@ jobs:
         id: checkout
         uses: actions/checkout@v6
 
-      - name: ccache
-        uses: ggml-org/ccache-action@v1.2.21
-        if: ${{ matrix.sanitizer == 'THREAD' }}
-        with:
-          key: ctest-thread-ubuntu-24.04
-          variant: ccache
-          evict-old-files: 1d
-          save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+      - name: ccache
+        uses: ggml-org/ccache-action@v1.2.21
+      #   if: ${{ matrix.sanitizer != 'UNDEFINED' }}
+        with:
+      #     key: ctest-${{ matrix.sanitizer }}-ubuntu-24.04
+          variant: ccache
+          evict-old-files: 1d
+          save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
 
       # with UNDEFINED sanitizer, we have to build in Debug to avoid GCC 13 false-positive warnings
       - name: Build (undefined)