]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci : use -j param correctly when building with sanitizers (#19411)
authorGeorgi Gerganov <redacted>
Sat, 7 Feb 2026 22:50:47 +0000 (00:50 +0200)
committerGitHub <redacted>
Sat, 7 Feb 2026 22:50:47 +0000 (23:50 +0100)
* ci : use less jobs when building with sanitizers

* cont : fix nproc

* cont : fix the fix

* cont : simplify

.github/workflows/build.yml
.github/workflows/server.yml

index 51a3dc76e9e9d4250e681e53747ca2a19671d9a7..6c7ab7114317ceffa3eebfd150b038be031b50c7 100644 (file)
@@ -295,6 +295,7 @@ jobs:
             -DLLAMA_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
+
           cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
 
       - name: Build (no OpenMP)
@@ -307,6 +308,7 @@ jobs:
             -DGGML_SANITIZE_${{ matrix.sanitizer }}=ON \
             -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
             -DGGML_OPENMP=OFF
+
           cmake --build build --config ${{ matrix.build_type }} -j $(nproc)
 
       - name: Test
index 3d342c35f79b062b2708e9b6ab00bac8f7b57934..f44a9e739c56f409681e18b1af6e3e0fcd19976c 100644 (file)
@@ -81,7 +81,7 @@ jobs:
             -DLLAMA_SANITIZE_ADDRESS=${{ matrix.sanitizer == 'ADDRESS' }} \
             -DLLAMA_SANITIZE_THREAD=${{ matrix.sanitizer == 'THREAD' }} \
             -DLLAMA_SANITIZE_UNDEFINED=${{ matrix.sanitizer == 'UNDEFINED' }}
-          cmake --build build --config ${{ matrix.build_type }} -j ${env:NUMBER_OF_PROCESSORS} --target llama-server
+          cmake --build build --config ${{ matrix.build_type }} -j $(nproc) --target llama-server
 
       - name: Python setup
         id: setup_python