Skip to content
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

Fix leaks in asynchronous mode #358

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

JuanGonzalezCaminero
Copy link
Contributor

No description provided.

@JuanGonzalezCaminero JuanGonzalezCaminero added the bug Type: Something isn't working label Mar 12, 2025
@phsft-bot
Copy link

Can one of the admins verify this patch?

agheata pushed a commit that referenced this pull request Mar 17, 2025
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:
<img width="637" alt="Screenshot 2025-03-16 at 10 45 45"
src="https://github.com/user-attachments/assets/b09065a3-567f-4e92-8528-95d60ff3b772"
/>
@@ -42,6 +42,12 @@ set(CMAKE_CUDA_STANDARD_REQUIRED ${CMAKE_CXX_STANDARD_REQUIRED})
set(CMAKE_CUDA_EXTENSIONS OFF)
set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)


# DEBUG
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer -g")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can I interest you in our builds with no-omit-framepointer enabled in the compiler (gcc14fp)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type: Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants