Skip to content

[CI] Build trim CUDA with CUDA 13.4 and GCC 16 - #11

Merged
cyyever merged 2 commits into
trimfrom
ci/fix-cuda-image
Oct 30, 2026
Merged

cyyever merged 2 commits into
trimfrom
ci/fix-cuda-image

Conversation

@cyyever

@cyyever cyyever commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Linked issue or supporting maintainer

BakeLab maintainer request: “改用 GCC 16” and “好的,开pr”.

BC-breaking?

No product API change.

Summary (human written only)

“改用 GCC 16”
“好的,开pr”

Agent details (AI-generated)

The trim CUDA job cannot pull the matrix-derived cuda13.3 image. The available CUDA 13.4 builder then fails configuration because its default GCC 13 is below trim's GCC 16 requirement. Pin the CUDA 13.4 image and install conda-forge GCC/G++ 16.2.0 with a glibc 2.28 sysroot inside the job container.

CC, CXX and CUDAHOSTCXX select GCC 16 for C++ and nvcc host compilation; the matching libstdc++ runtime is added to the library path. Upload the compiler version alongside the existing SHA/image/test artifacts. The job still builds its triggering SHA with Python 3.14 and runs test/test_cuda.py. Runner provisioning and the release matrix are unchanged. Rebased on trim after #13.

Validation:

  • Targeted lintrunner -a --take GHA,ACTIONLINT,NEWLINE -- .github/workflows/cuda-ci.yml .ci/RELEASE.md and git diff --check passed.
  • Confirmed the pinned image manifest and conda-forge GCC/G++ 16.2.0 package metadata exist.
  • Gitea run #8 reproduced the original GCC 13 rejection at CMake configuration.
  • A temporary BB sandbox validation was attempted with the pinned image, GCC 16 install, C++26 compilation and a CUDA kernel. Docker image pulling failed before the compiler install; the sandbox was reclaimed. This does not validate GCC 16/CUDA compilation. Full source build/tests remain pending; keep draft.

AI assistance: OpenAI Codex. This updates the existing image-fix PR rather than opening a duplicate.

Assisted-by: Codex
Signed-off-by: cyy <[email protected]>
The CUDA 13.4 builder defaults to GCC 13, but trim requires GCC 16 and
libstdc++ 16. Install the conda-forge GCC/G++ 16.2 toolchain with a glibc
2.28 sysroot and select it for C++ and nvcc host compilation. Record the
compiler version with the existing CI artifacts.

Test Plan:
```sh
.venv/bin/lintrunner -a --take GHA,ACTIONLINT,NEWLINE -- .github/workflows/cuda-ci.yml .ci/RELEASE.md
git diff --check
```
Both checks passed. Runtime validation is recorded in the PR.

Assisted-by: OpenAI Codex
Signed-off-by: cyy <[email protected]>
@cyyever cyyever changed the title [CI] Pin an available CUDA 13.4 build image [CI] Build trim CUDA with CUDA 13.4 and GCC 16 Oct 30, 2026
@cyyever
cyyever marked this pull request as ready for review October 30, 2026 14:39
@cyyever
cyyever merged commit a8b572f into trim Oct 30, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant