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 Inquiry #3

Open
kmcnayr opened this issue Jan 11, 2017 · 1 comment
Open

Parallel Inquiry #3

kmcnayr opened this issue Jan 11, 2017 · 1 comment

Comments

@kmcnayr
Copy link

kmcnayr commented Jan 11, 2017

Not an issue, but don't know a better way to ask a question: is there a way to verify the parallel is working? I set parallel and parallel_statistic_calculation to true and cores to my number of cpus in the ergm function but it doesn't seem like my computer's cpu's are being used. Was thinking they'd all hit 100% doing some work like other parallel models. Just curious what the parallel should look like and what kind of speedup to expect. Thanks!

@matthewjdenny
Copy link
Owner

@kmcnayr Sorry I didn't see this earlier! You need to set parallel = TRUE, cores = X, and parallel_statistic_calculation = TRUE. For parallel_statistic_calculation, it uses C++ threading, which only really kicks in if you are working with a large network, and only during MCMC when simulating networks. I have found it gives a pretty moderate speedup (maybe 2x-5x faster with networks under 100 nodes, using like 10 cores), but this speedup grows relatively in the network size. Let me know if you still do not see full utilization (although I would not expect to see it with a smaller network under 20 nodes or so, just because it should happen so fast you do not get to register the utilization). There might also be some issues with it on windows or more exotic linux distros. Hope this helps!

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