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

Pythia8Generator produces different results with multi-threading #3963

Open
andiwand opened this issue Dec 7, 2024 · 1 comment
Open

Pythia8Generator produces different results with multi-threading #3963

andiwand opened this issue Dec 7, 2024 · 1 comment

Comments

@andiwand
Copy link
Contributor

andiwand commented Dec 7, 2024

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.

@andiwand andiwand changed the title Pythia8Generator produces different with multi-threading Pythia8Generator produces different results with multi-threading Dec 7, 2024
@paulgessinger
Copy link
Member

You can supply the random number sequence but maybe that's not enough to make reproducible results?

kodiakhq bot pushed a commit that referenced this issue Dec 9, 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 -->
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

No branches or pull requests

2 participants