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

Error when initial_sample_size < # processors #47

Open
jwarner308 opened this issue Aug 16, 2019 · 0 comments
Open

Error when initial_sample_size < # processors #47

jwarner308 opened this issue Aug 16, 2019 · 0 comments

Comments

@jwarner308
Copy link
Collaborator

MLMCPy/MLMCPy/mlmc/MLMCSimulator.py:237: RuntimeWarning: divide by zero encountered in divide

The costs being calculated there is for a particular processor and then the average cost across all processors is communicated/calculated for figuring out the optimal sample sizes later. The proper fix will be to rearrange how the average cost is being calculated by communicating/summing the total time for all processors then dividing by the total number of processors.

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
@jwarner308 and others