Skip to content

Timesorter thread barrier - #1142

Merged
dsarrut merged 4 commits into
OpenGATE:masterfrom
gertvanhoey:timesorter-thread-barrier
Oct 6, 2026
Merged

dsarrut merged 4 commits into
OpenGATE:masterfrom
gertvanhoey:timesorter-thread-barrier

Conversation

@gertvanhoey

@gertvanhoey gertvanhoey commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

As discussed in #1090, this PR is a follow-up to PR 1090 to further reduce the memory consumption of actors that use a GateTimeSorter in multi-threaded simulations (CoincidenceSorterActor, DeadTimeActor, PileupActor). The change makes sure that the divergence of GlobalTime between threads is limited, which also limits the amount of memory required for buffering digis in the time sorter. This is done by forcing the "faster" threads to wait for the "slower" ones to catch up. This mechanism only kicks in once in a while so the impact on the simulation speed is limited.

@dsarrut
dsarrut force-pushed the timesorter-thread-barrier branch from 196b999 to 16de9b3 Compare October 6, 2026 09:12
@dsarrut
dsarrut merged commit c9694a0 into OpenGATE:master Oct 6, 2026
62 of 63 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.

2 participants