Skip to content

Initialize AdePT from G4 workers #386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

SeverinDiederichs
Copy link
Collaborator

@SeverinDiederichs SeverinDiederichs commented Apr 14, 2025

In the experimental frameworks, AdePT must be initialized by the G4 workers, because at the initialization time of the master thread, the number of G4 workers is not yet known.

Therefore, the initialization is postponed to the first G4 worker. Then, all other G4 workers must wait for the first worker to have initialized AdePT before they can proceed.

This fixes running with AdePT in Gauss and Athena.

@phsft-bot
Copy link

Can one of the admins verify this patch?

@SeverinDiederichs SeverinDiederichs marked this pull request as ready for review April 15, 2025 08:30
Copy link
Contributor

@JuanGonzalezCaminero JuanGonzalezCaminero left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the changes!

@SeverinDiederichs SeverinDiederichs merged commit 043c073 into apt-sim:master Apr 15, 2025
3 checks passed
@SeverinDiederichs SeverinDiederichs deleted the adept_init_by_g4workers branch April 15, 2025 08:47
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.

4 participants