Repository navigation
Conversation
- Add a spack-based build-spack workflow testing VecGeom 2.3 (pinned wip/gpu-portability commit, overridable via workflow_dispatch) against Geant4 10.5 and 11.4, plus VecGeom 1.2.11 against Geant4 11.3. The spack setup is adapted from Celeritas so that Geant4 is pulled from the Celeritas spack buildcache. - Move the Docker job to ghcr.io/celeritas-project/ci-cuda:2026-11-12 (VecGeom 2.2 +cuda, CUDA 13) and build for sm_80. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
G4VG supports C++17 (required for Geant4 10.5), where designated initializers are a -pedantic error under clang. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
G4PVDivision only overrides GetMultiplicity since Geant4 10.6: before that the base class returns 1, so only one copy of each division was placed. Use the number of replicas from the replication data instead. Found by the new Geant4 10.5 CI job (ZnenvTest.default_options). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sethrj
left a comment
There was a problem hiding this comment.
Thanks @esseivaju ! Two comments.
This reverts commit b114966, which will be submitted separately. The Geant4 10.5 job fails ZnenvTest until that fix is merged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@esseivaju Thanks for this. One note on the VecGeom pin: 9cb15a8a is reachable only from wip/gpu-portability and wip/hip-backend. MR 1689 is now split (MR 1689 restructuring, MR 1690 HIP); after MR 1689 is squash-merged and its branch deleted, and MR 1690 is rebased onto master, that commit is on no branch or tag, so Spack will likely fail to fetch it. v2.3.0-rc.1 will be tagged on master right after the merge; could the pin move to that tag then (and to vecgeom@2.3 once it is in Spack)? Until then the pin works as is; the branch head (latest) no longer contains the HIP backend, which G4VG does not need. 🤖 Written with Claude Code (Claude Opus 5.5) |
|
@agheata I think then this should wait until the namespace refactor is merged. Then we have an actual commit to test against... |
|
Yes, let's wait until MR 1689 is merged. Then this PR can test against the merged commit. The follow-up #53 waits until MR 1690 is merged |
As discussed in celeritas-project/celeritas#2705, this tests G4VG against VecGeom 2.3 with the oldest and newest Geant4 versions Celeritas supports (10.5 and 11.4), and moves the Docker CI image to ghcr.
CI coverage after this PR
build-full(debug, ndebug)ghcr.io/celeritas-project/ci-cuda:2026-11-12build-spackbuild-spackbuild-spackbuild-full: Docker image moved to ghcrdocker.io/celeritas/ci-rocky-cuda12:2024-12-29→ghcr.io/celeritas-project/ci-cuda:2026-11-12(Ubuntu 24.04, CUDA 13, VecGeom 2.2+cuda cuda_arch=80, Geant4 11.3).scripts/cmake-presets/ci-rocky-cuda.jsonis renamed toci-ubuntu-cuda.jsonand builds for sm_80, using a new.cuda-amperepreset inCMakePresets.json. CUDA 13 dropped sm_70, and the image's VecGeom device library is built for sm_80.build-spack: new workflow9cb15a8a) of thewip/gpu-portabilitybranch (VecGeom MR 1689). When you start the workflow by hand you can pass another commit, orlatestfor the branch head. Once 2.3.0 is in spack-packages, the pin can becomevecgeom@2.3.scripts/cmake-presets/ci-ubuntu-github.json(clang-18,-Werror, C++ standard from the matrix).pr.ymlandpush.ymlcall the new workflow, and the requiredallcheck now depends on it.Files vendored from Celeritas
These were copied from Celeritas
developat celeritas-project/celeritas@db9a1d4e6. The Spack config must match Celeritas's so that dependencies resolve to the same packages as in its buildcache. Differences from the originals:Unchanged except for the header comment. The header now says where the file came from and that it must stay in sync:
scripts/spack/prefs-build.yamlscripts/spack/ext-ubuntu24.yamlscripts/spack/reqs-ci.yaml. New header comment, plus G4VG's package requirements appended at the end (cmake@3.21:,geant4@10.5:,googletest@1.10:,vecgeom +gdml, the same as in Celeritas'sreqs-celer.yaml).scripts/ci/setup-spack-ci-env.sh. Renames only:CELER_SOURCE_DIR,CELER_SPACK_OPTandCELER_SPACK_VIEWare renamed toG4VG_*.$@→$*in a log message. Thespack add "$@"call is unchanged..github/actions/setup-spack/action.yml. Trimmed, with some behaviour changes:add-dependentsecond-environment step and theno-saveinput: not used here.spack concretizeinstead of--fresh --non-defaults, so specs already in the buildcache are reused.--use-buildcache=auto. Celeritas usesonlyon PRs, which would fail here because VecGeom 2.3 has to be built from source.$GITHUB_WORKSPACE/spack-envinstead of the repository root.spack debug reportand the buildcache listing are dropped.scripts/spack/env-ci-base.yamlis new and G4VG-specific: it only listscmake,ninjaandgoogletest. Geant4 and VecGeom are added per job.Bug fixes found by the new Geant4 10.5 job
test/Custom.test.ccused designated initializers, which are C++20 only. At C++17 under clang-pedantic -Werrorthey fail to compile.ZnenvTest.default_optionsfail on Geant4 10.5. The Geant4 10.5 job fails until Fix division volume multiplicity before Geant4 10.6 #54 is merged and this branch is updated.Testing
All jobs passed on esseivaju#1 (same branch) at b114966, which still included the #54 fix.
🤖 Generated with Claude Code