Repository navigation
ci : cover GGML_BACKEND_DL in ubuntu-22-clang-arm64 - #4047
Merged
danbev merged 2 commits intoSep 24, 2026
Merged
Conversation
danbev
reviewed
Sep 23, 2026
| fail-fast: false | ||
| matrix: | ||
| build: [Debug, Release] | ||
| backend_dl: ['OFF', 'ON'] |
Member
There was a problem hiding this comment.
I think running this two additional times might be a bit wasteful (we have to be a bit mindful about our resources in CI). I think it would be enough to just run one additional job with GGML_BACKEND_DL=ON.
I tried something like this and it seems to work:
ubuntu-22-clang-arm64:
name: ubuntu-22-clang-arm64 (${{ matrix.build }}, backend DL ${{ matrix.backend_dl }})
runs-on: ubuntu-22.04-arm
strategy:
fail-fast: false
matrix:
build: [Debug, Release]
backend_dl: ['OFF']
include:
- build: Debug
backend_dl: 'ON'
This also includes setting the name as it makes it easier to read it in github actions.
Contributor
Author
|
Thanks @danbev, applied your suggested matrix as is. It's down to 3 jobs now: Debug/OFF, Release/OFF and Debug/ON. The ccache key already includes the dl suffix, so no change was needed there. |
danbev
approved these changes
Sep 24, 2026
Member
|
@apollo-2006 Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #4031, which ended by saying a
cteststep on aGGML_BACKEND_DLjob would cover the combination but belonged in its own change. This is that change.#4030 shipped because no workflow pairs the two.
build-clang.yml,build-gcc.ymlandbuild-sanitize.ymlrunctest -L ghbut never setGGML_BACKEND_DL;release.ymlsets it but runs no tests. So three of the four tests that initialise a context aborted onGGML_ASSERT(device)underGGML_BACKEND_DL=ONand CI stayed green the whole time.Three lines in
build-clang.yml:ubuntu-22-clang-arm64matrix gainsbackend_dl: ['OFF', 'ON']-DGGML_BACKEND_DL=${{ matrix.backend_dl }}-dl-${{ matrix.backend_dl }}Two legs become four.
Why this job
Native arm64 runner, no Docker and no QEMU. It already runs
ctest -L ghand already triggers on push, pull_request and workflow_dispatch, so the coverage arrives without touching anything else in the workflow.Does the guard catch #4030
Reverting #4031 on a
-DGGML_BACKEND_DL=ONbuild,ctest -L gh:test-whisper-zero-samplestest-parakeetThe ON legs go red on a tree carrying the bug and green on master. That is the whole argument for the change.
Why the values are quoted
YAML reads bare ON/OFF as booleans. Unquoted they reach cmake as true/false and render as
dl-truein job names. Quoted they stay OFF/ON, and the job names on the fork run read(Debug, OFF)and(Release, ON).Why the ccache key changes
GGML_CCACHEisoption(...)ON atggml/CMakeLists.txt:125, andggml/src/CMakeLists.txt:68auto-detects ccache intoRULE_LAUNCH_COMPILE. So this job uses ccache even though its cmake line never sets aCOMPILER_LAUNCHER. Without the key change the OFF and ON legs would race to save one entry on a master push.save:is gated to push-on-master, so PRs only restore.Verification
Fork run 34251240356 on
ubuntu-22.04-arm, four legs, all green. Both ON legs log-DGGML_BACKEND_DL=ONin the configure step and finish100% tests passed, 0 tests failed out of 4.Not in this PR
build-gcc.ymlandbuild-sanitize.ymlcould take the same axis. One job is enough to guard the combination and extra legs cost runner time, so I have left them alone. The release path is separate:release.ymlsetsGGML_BACKEND_DL=ONand runs no tests, andmacos-cpuis the only place that flag meetsGGML_CPU_ALL_VARIANTS=ONon Apple hardware. That is #4029.