Skip to content

Improve memory usage when calculating normalization integrals#139

Merged
mashephe merged 32 commits into
masterfrom
batch_genmc_normint_calc
Jul 9, 2026
Merged

Improve memory usage when calculating normalization integrals#139
mashephe merged 32 commits into
masterfrom
batch_genmc_normint_calc

Conversation

@mashephe

@mashephe mashephe commented Jul 8, 2026

Copy link
Copy Markdown
Owner

This is a number of changes that are focused on reducing memory (GPU and CPU) use. Some existing inefficiencies were eliminated. The major algorithmic change is to compute the normalization integrals for the generated MC in batches at the end of a fit. There is currently no way to toggle off/on this behavior -- it is on by default. The code should be completely backwards compatible with existing fitters. One needs to just recompile and relink with this new version of the AmpTools core library.

Matthew Shepherd and others added 30 commits June 11, 2026 15:25
…ions; in many places reduce size of event indices from long or long long to int, which should be sufficient
…ks instead of for the entire data set at once; this is intended to reduce memory consumption
…entire data set, which reduces memory consumption
…nk size to increment the factor arrays; improve some debugging outputs
…a sets copied to the GPU; adjust initData call order to be compatible with GPU operations
…data into memory in addition to data being loaded into memory on the follower nodes; use new loadMC method to control single process and MPI loading; change some unsigned long int to unsigned int
mashephe added 2 commits July 8, 2026 15:11
…e GPU in parallel with AmpVecs data sharing; NormIntInterface cleans up memory allocated for terms after gen MC integral calculation
@mashephe
mashephe merged commit 2a9211f into master Jul 9, 2026
8 checks passed
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