Skip to content

ci : use less jobs when building with sanitizers#19411

Merged
CISC merged 4 commits intomasterfrom
gg/ci-sanitize-less-threads
Feb 7, 2026
Merged

ci : use less jobs when building with sanitizers#19411
CISC merged 4 commits intomasterfrom
gg/ci-sanitize-less-threads

Conversation

@ggerganov
Copy link
Member

ref #19291 (comment)

I think this might help with sanitizer jobs being randomly terminated (such as https://github.com/ggml-org/llama.cpp/actions/runs/21761592313/job/62786390511).

@github-actions github-actions bot added the devops improvements to build systems and github actions label Feb 7, 2026
-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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this was actually the problem, it looks like this is not defined, thus running the build with just -j...

@CISC
Copy link
Member

CISC commented Feb 7, 2026

It might not be necessary to limit jobs to less than nproc after all though, I think the default with just -j was just extremely high.

@ggerganov
Copy link
Member Author

Yes, let's give it a try without the reduction first.

@ggerganov ggerganov marked this pull request as ready for review February 7, 2026 12:51
Copy link
Member

@CISC CISC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running them once more just to confirm.

@CISC
Copy link
Member

CISC commented Feb 7, 2026

Things look good, will merge this now to have working CI for next PR (moving server tests).

@CISC CISC merged commit 96441c9 into master Feb 7, 2026
82 of 83 checks passed
liparetejas pushed a commit to liparetejas/llama.cpp that referenced this pull request Feb 23, 2026
…9411)

* ci : use less jobs when building with sanitizers

* cont : fix nproc

* cont : fix the fix

* cont : simplify
bartowski1182 pushed a commit to bartowski1182/llama.cpp that referenced this pull request Mar 2, 2026
…9411)

* ci : use less jobs when building with sanitizers

* cont : fix nproc

* cont : fix the fix

* cont : simplify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants