Skip to content

g4adept: new package - #4150

Merged
sethrj merged 19 commits into
developfrom
g4adept-0.2.0
Apr 12, 2026
Merged

g4adept: new package#4150
sethrj merged 19 commits into
developfrom
g4adept-0.2.0

Conversation

@wdconinc

@wdconinc wdconinc commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

This PR adds g4adept, v0.2.0. This is an accelerated demonstrator of electromagnetic particle transport that builds on g4hepem.

Needs:

Test build:

-- linux-ubuntu24.04-skylake_avx512 / %c,cxx=gcc@14.2.0 ---------
tde4urx g4adept@0.3.0+covfie+cuda+examples~ipo~mixed_precision~split_kernels~surf build_system=cmake build_type=Release cuda_arch:=75 generator=make
==> 1 installed package

Copilot AI review requested due to automatic review settings April 7, 2026 16:27
@spackbot-triage spackbot-triage Bot added new-package Additions of new packages to the Spack ecosystem new-version Modifications to packages' `depends_on()` directives dependencies Modifications with a `depends_on()` directive conflicts Modifications with a `conflicts()` directive new-variant Modifications to packages' `variant()` directives labels Apr 7, 2026
@wdconinc

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

Copilot AI 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.

Pull request overview

Adds a new Spack package recipe for g4adept v0.2.0 (CUDA-accelerated EM particle transport demonstrator) to the builtin package repository, intended to build against external Geant4/VecGeom/G4VG/G4HepEm dependencies.

Changes:

  • Introduces repos/spack_repo/builtin/packages/g4adept/package.py with versions, variants, dependencies, and CMake configuration options.
  • Enforces CUDA as a required build feature via a ~cuda conflict.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread repos/spack_repo/builtin/packages/g4adept/package.py
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
@spackbot-triage spackbot-triage Bot added the update-package Modifications to packages in the repository label Apr 8, 2026
@wdconinc
wdconinc requested a review from sethrj April 8, 2026 18:09
@wdconinc

wdconinc commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

@sethrj This builds now, but I have not gotten around to testing.

sethrj
sethrj previously approved these changes Apr 8, 2026

@sethrj sethrj 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.

LGTM modulo these couple of comments.

Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py
sethrj
sethrj previously approved these changes Apr 8, 2026
@wdconinc

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

@spackbot-app

This comment was marked as resolved.

Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
Comment thread repos/spack_repo/builtin/packages/g4adept/package.py Outdated
@wdconinc

Copy link
Copy Markdown
Contributor Author

This PR allows for successful inclusion of AdePT in DD4hep simulations (AIDASoft/DD4hep#1606, WIP), with some remaining work similar to the celeritas integration.

@sethrj
sethrj enabled auto-merge (squash) April 11, 2026 20:14
@sethrj
sethrj merged commit 6346a54 into develop Apr 12, 2026
17 checks passed
@sethrj
sethrj deleted the g4adept-0.2.0 branch April 12, 2026 11:32
kshea21 pushed a commit that referenced this pull request May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Modifications with a `conflicts()` directive dependencies Modifications with a `depends_on()` directive new-package Additions of new packages to the Spack ecosystem new-variant Modifications to packages' `variant()` directives new-version Modifications to packages' `depends_on()` directives update-package Modifications to packages in the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants