Skip to content

Performance opt eurohack #318

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

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

Performance opt eurohack #318

wants to merge 7 commits into from

Conversation

s-mayani
Copy link
Collaborator

During the course of the Eurohack24 hackathon at CSCS, we worked on performance analysis of our full PIC code by looking at the performance of the Alpine mini-app Landau Damping on the Nvidia A100 GPU cluster at PSI.

The results showed that the scatter operation could be sped up quite a bit by implementing a sorting of particles which are in the same cell, which increases data locality when having to do the atomic add for the interpolation, and avoids throwing away the cache. Furthermore, we can add locally within the cell and then do a single atomic add to the actual field grid point.

The motivation and results are shown in the slides attached. The zip file contains the Nvidia nsight systems reports for the different runs we did to test the performance improvements.

sorted_scatter_PR.pdf
final_reports.zip

This still needs some clean-up; namely improving the design (e.g. by making a class for the sort) and improving the sorting algorithm itself, which is not yet optimal. Additionally, the next goal to improve performance would be using Kokkos team policy and scatter many cells per team.

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.

1 participant