Skip to content

Detect GPUs in the ExCL environment and warn about stale GPU test settings - #2713

Draft
sethrj-bot wants to merge 4 commits into
celeritas-project:developfrom
sethrj-bot:excl-gpu-detect
Draft

sethrj-bot wants to merge 4 commits into
celeritas-project:developfrom
sethrj-bot:excl-gpu-detect

Conversation

@sethrj-bot

Copy link
Copy Markdown
Contributor

Improve GPU handling for the shared ExCL claude-excl environment, which is used across many hosts (with and without GPUs, NVIDIA and AMD):

  • CMake: CELERITAS_DISABLE_DEVICE is cached at the first configure, so changing the environment afterward (e.g. relaunching apptainer with --nv) left GPU tests silently disabled. celeritas_get_disable_device now warns once per configure when the cached value and CELER_DISABLE_DEVICE in the environment disagree (in either direction), suggesting -U CELERITAS_DISABLE_DEVICE.
  • scripts/env/claude-excl.sh: only set CELER_DISABLE_DEVICE=1 when no usable GPU is found (nvidia-smi -L fails, and rocm-smi --showid fails or /dev/kfd is absent).
  • scripts/cmake-presets/claude-excl.json: add release-orange-celer-cuda, which builds for sm_60 (Tesla P100) against the celer-cuda spack view with LArSoft disabled.

Tested on a P100 node (CUDA 12.9 toolkit, 550 driver): both warnings trigger as expected, and with GPU testing enabled 506/509 tests pass. The three failures (StepperGeant:TestEm3Msc.device, StepperGeant:TestEm15FieldMsc.device, OpticalCollector device distributions) are reference-value mismatches on the device that already occur on develop; they're unrelated to this change.

🤖 Generated with Claude Code (Claude Opus 5.5)

sethrj-bot and others added 2 commits December 1, 2026 17:37
CELERITAS_DISABLE_DEVICE is cached on the first configure, so changing the
environment later (e.g. relaunching a container with GPU access) silently
leaves GPU tests disabled. Warn once per configure in either direction and
suggest reconfiguring with '-U CELERITAS_DISABLE_DEVICE'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only set CELER_DISABLE_DEVICE when neither nvidia-smi nor rocm-smi (with
/dev/kfd) reports a usable device, since the script is shared across ExCL
hosts. Add release-orange-celer-cuda, which builds for sm_60 (P100) against
the celer-cuda view without LArSoft.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the ai-generated Generated and managed by an agent/bot, not a human. label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Test summary

 7 838 files  12 894 suites   7m 53s ⏱️
 2 058 tests  2 045 ✅  13 💤 0 ❌
44 432 runs  44 139 ✅ 293 💤 0 ❌

Results for commit 24d5ae6.

♻️ This comment has been updated with latest results.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Generated and managed by an agent/bot, not a human.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants