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

Metropolis not thread safe? #55

Open
simone-romiti opened this issue Dec 2, 2024 · 3 comments
Open

Metropolis not thread safe? #55

simone-romiti opened this issue Dec 2, 2024 · 3 comments
Assignees

Comments

@simone-romiti
Copy link
Collaborator

If we run the metropolis with different numbers of cores the result changes.
The issue lies in the sweep function. Parallelizing in "t" only is not enough, as we should account also of nearest enighbors in the spatial directions.

@urbach
Copy link
Member

urbach commented Dec 2, 2024 via email

@christianegross
Copy link
Collaborator

By how much do the results change? I do not expect it to be exactly identical, because the number of random number generators we assign and use depends on the number of cores, and I am not sure if the loop iterations are distributed statically or dynamically to the threads.

@simone-romiti
Copy link
Collaborator Author

Yes, I mean "notidentical". They are fairly similar though. I am currently trying to implement a thread safe version of that.

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

3 participants