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

Parallel #255

Merged
merged 19 commits into from
Oct 10, 2019
Merged

Parallel #255

merged 19 commits into from
Oct 10, 2019

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Oct 10, 2019

Works towards #204 by switching to per-human random number generators.

Does not complete this effort; at least two issues remain (but even with these solved I can't make tests pass):

  • some monitoring measures are reported during updates, thus need to lock / use mutexes
  • tsAdultEntoInocs and tsNumAdults static vars are updated within TransmissionModel::getEIR

This was already disabled but would cause some issues with parallelisation
plans due to its size, hence there is no reason to keep this code.
This makes it possible to pass the generator into functions.
No significant performance impact
This is transitional work towards multiple RNGs,
enabling parallelisation.
No changes to which RNG is used; tests pass
No changes to which RNG is used; tests pass
No changes to which RNG is used; tests pass
This has very low cost and significantly reduces the chance
of two local RNGs overlapping part of their period.
@dhardy dhardy merged commit d5502b8 into SwissTPH:master Oct 10, 2019
@dhardy dhardy mentioned this pull request Oct 10, 2019
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