Skip to content

Enable event finishing #360

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
merged 4 commits into from
Mar 17, 2025

Conversation

SeverinDiederichs
Copy link
Collaborator

This PR introduces a new feature for the async mode: /adept/FinishLastNParticlesOnCPU.

It is not complete yet, as they are currently just killed and not pushed to the CPU, as this will require #358 to work and be merged.

Still, killing the last N particles can currently be used to assess some performance bottlenecks with the magnetic field.

Also, a timer is added to the printout of the async printouts.

This allows for the plotting the numbers of flight vs time and not just only vs iterations, as this severely skews it towards the fast iterations at the tail:
Screenshot 2025-03-16 at 10 45 45

@phsft-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@agheata agheata left a comment

Choose a reason for hiding this comment

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

It will indeed be interesting to see how much of the 20% we can recover if we send the tracks back to the CPU. I made few comments, but this is goot to be merged.

@agheata
Copy link
Contributor

agheata commented Mar 17, 2025

The failure is a CI configuration issue, the build&test finished OK

@agheata agheata merged commit 50ab609 into apt-sim:master Mar 17, 2025
2 of 3 checks passed
@SeverinDiederichs SeverinDiederichs deleted the enable_EventFinishing branch March 22, 2025 10:05
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.

3 participants