You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I experimented with this a bit and it seems like as soon as we use a single Pythia8Generator instance twice, which happens with nhard > 1 or npileup > 1 with addPythia8, the output will be randomly different.
My best guess is that Pythia8 has some internal state and starts to cross-talk over events if one generator is called from multiple threads.
This would also mean that skipping events will not produce the same results as actually processing the events.
Until this is fixed we should stick to single threading and not skip events if reproducibility is important.
The text was updated successfully, but these errors were encountered:
andiwand
changed the title
Pythia8Generator produces different with multi-threadingPythia8Generator produces different results with multi-threading
Dec 7, 2024
Until #3963 is fixed we have to stick to single threaded processing with ttbar
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Bug Fixes**
- Adjusted threading configuration to single-threaded execution to enhance stability and prevent race conditions during simulations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
I experimented with this a bit and it seems like as soon as we use a single
Pythia8Generator
instance twice, which happens withnhard > 1
ornpileup > 1
withaddPythia8
, the output will be randomly different.My best guess is that Pythia8 has some internal state and starts to cross-talk over events if one generator is called from multiple threads.
This would also mean that skipping events will not produce the same results as actually processing the events.
Until this is fixed we should stick to single threading and not skip events if reproducibility is important.
The text was updated successfully, but these errors were encountered: