Skip to content

enable ATLAS stepping action on GPU - #757

Merged
SeverinDiederichs merged 1 commit into
apt-sim:masterfrom
SeverinDiederichs:atlas_device_kill_regions
Nov 30, 2026
Merged

SeverinDiederichs merged 1 commit into
apt-sim:masterfrom
SeverinDiederichs:atlas_device_kill_regions

Conversation

@SeverinDiederichs

Copy link
Copy Markdown
Collaborator

This PR implements a stepping action for ATLAS on GPU. It mimics the dead material and beam pipe killers in ATLAS. Before, only the calorimeters were offloaded, so it was not relevant, when offloading everything, this enables to keep the two regions on the GPU, which avoids CPU-GPU handovers.

It is implemented the same way as the CMS stepping action and is then configurable from the AdePTConfiguration in the Athena physics list.

@SeverinDiederichs

Copy link
Copy Markdown
Collaborator Author

/run-test

@SeverinDiederichs

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T11:13:42.439280Z e554bc9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e554bc964e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@agheata agheata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking issues found.

  • The kill predicate is the same as Athena's DeadMaterialShower::ModelTrigger (athena main). If |z| < ZCutoff, only e+- with E < LowEnergy are killed. If |z| >= ZCutoff, everything with E <= HighEnergy is killed (Athena keeps only E > HighEnergy). SimpleFastKiller kills every track. The unit test covers both cut edges.
  • The action runs at the start of each step in the monolithic, split and WDT gamma kernels, so a track is killed where Athena's fast-simulation trigger would kill it. A killed track deposits no energy, and a killed positron does not annihilate (its slot is freed before annihilation is reached). When steps are returned, the terminal zero-length step is still recorded.
  • The InitVolAuxData flags and the WDT envelope check copy the existing CMS dead-region code. The CI matrix builds with ADEPT_STEPPINGACTION=ATLAS, so the new unit tests ran in the unit suite. Drift matched master, which is expected because no kill regions are configured by default.
  • The two Codex P2 threads (a region in both kill lists; ATLAS built with WDT off) cannot happen with Athena's configuration and need no code.

Assisted by Claude Code (Claude Opus 5.5)

@SeverinDiederichs
SeverinDiederichs merged commit 187962e into apt-sim:master Nov 30, 2026
6 checks passed
@SeverinDiederichs
SeverinDiederichs deleted the atlas_device_kill_regions branch November 30, 2026 09:37
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.

2 participants