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

Streamline DataManager -> TreePiece Coordination #183

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

spencerw
Copy link
Member

This makes a couple of changes to how the DataManager interacts with TreePieces.

  1. The 'registeredTreePieces' array maintained by the DataManager is cleared out immediately before the tree build. This removes the need to call 'clearRegisteredPieces' in various points throughout the code.

  2. When the CUDA flag is enabled, TreePieces are now assigned CUDA streams when the tree build happens. Previously, this happened during 'commenceCalcualteGravityLocal', which meant that the GPU functionality was only useable when gravity was enabled.

The 'teststep' and 'testonestar' cases were both verified to be passing.

@trquinn
Copy link
Member

trquinn commented Sep 26, 2024

This addresses issue #165

@trquinn trquinn linked an issue Sep 26, 2024 that may be closed by this pull request
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.

Clean up bookkeeping of DataManager::registeredTreePieces
2 participants