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>
The Celeritas ci-rocm image has no VecGeom, so build the pinned VecGeom 2.3 development commit with VECGEOM_ENABLE_HIP (gfx90a, ROCm clang++) in the job and cache the installation. G4VG is built with the ROCm clang++ against it; VecGeom's config loads its HIP-capable CudaRdcUtils (v15). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Linking the shared libvecgeom.so with HIP device code fails with ROCm 7.2 (undefined hidden __hip_gpubin_handle_* symbols). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The image Geant4 requires C++20, so disable module scanning since ROCm has no clang-scan-deps. - VecGeom config points to its builtin VecCore in the build directory: build in /opt/vecgeom-build and cache its installExternals too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
esseivaju
marked this pull request as draft
December 2, 2026 21:33
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>
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.
Depends on #52. This branch is built on top of it, so this PR shows #52's commits until #52 merges. The changes specific to this PR are 01bc3b3, 747a81b and 990e2a1. The two commits after them (b995beb, 33a9aad) are copies of #52's review changes.
VecGeom 2.3 (
wip/gpu-portability, VecGeom MR 1689) adds a HIP backend. This PR adds abuild-fulljob that builds G4VG against a HIP-enabled VecGeom 2.3 in the Celeritas ROCm CI image.Changes
build-full.yml: newubuntu-rocmmatrix entry (debug and ndebug) usingghcr.io/celeritas-project/ci-rocm:2026-11-12, which has ROCm 7.2.4 and Geant4 11.3.build-spack(9cb15a8a). Settings:VECGEOM_ENABLE_HIP=ON, ROCmclang++as the C++ and HIP compiler,CMAKE_HIP_ARCHITECTURES=gfx90a(the same architecture as Celeritas's ROCm preset), and VecGeom's bundled VecCore.actions/cache, keyed on the VecGeom commit and the image date, so the roughly 4.5-minute HIP build only happens once.G4VG_VECGEOM_VERSIONto the job summary for both images.scripts/cmake-presets/ci-ubuntu-rocm.json(new): G4VG presets that use the ROCmclang++, based on Celeritas'sci-ubuntu-rocm.json.build-spack.yml: a comment saying to keepVECGEOM_2_3_COMMITin sync withbuild-full.yml.G4VG itself needs no CMake changes. It doesn't enable HIP, so it links VecGeom like a library without device code. VecGeom's package config loads its own HIP-capable CudaRdcUtils (v15), so G4VG's bundled copy (v14) isn't used, and this doesn't depend on celeritas-project/celeritas#2703.
Workarounds for review
libvecgeom.sowith ROCm 7.2.4:BUILD_SHARED_LIBS=ON.CMAKE_CXX_SCAN_FOR_MODULES=OFFin the ROCm preset. Geant4 in the image requires C++20, so CMake scans for C++20 modules, and ROCm has noclang-scan-deps. The Spack presets in Test VecGeom 2.3 in CI and move Docker job to ghcr #52 use the same workaround./opt/vecgeom-build/installExternals). VecGeom's package config points to the bundled VecCore installed in its build directory, not in the install prefix.Testing
All of these were run on the fork via
workflow_dispatch:build-fulljobs passed. The ROCm jobs show "HIP support enabled", VecGeom 2.3.0 found,G4VG_VECGEOM_VERSION 0x20300, and 11/11 tests passed. The runners have no AMD GPU, so tests run on the host only.🤖 Generated with Claude Code