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

Fix parallel execution bug (issue #38) #39

Merged
merged 1 commit into from
Oct 18, 2020

Conversation

pazner
Copy link
Contributor

@pazner pazner commented Aug 12, 2020

This PR attempts to fix the parallel execution bug in #38. That issue was caused because the samplers would tend to infer the iteration number as iter = length(ho.history)+1, but the workers would not update ho.history, and so the iteration number would always be 1 on the workers. This would cause the sampler to re-initialize at every iteration.

The work-around in this PR is to pass the iteration number to the samplers. I haven't done extensive testing, but this appears to work. There is one test case (GP sampler) that fails, but it fails for me on master too.

@baggepinnen baggepinnen merged commit 92c0515 into baggepinnen:master Oct 18, 2020
@baggepinnen
Copy link
Owner

Thanks :) Sorry it took me long to merge, it managed to get lost among my notifications :/

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