-
Notifications
You must be signed in to change notification settings - Fork 28
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
clustermq falsely claims to submit jobs when running in local mode #196
Comments
Are you using the If so, the following should fix it: getOption("clustermq.scheduler") # check which scheduler is set
options(clustermq.scheduler = "multicore") # select multicore
# foreach example.. The reason for this is that we never select When you load
In your case it won't because you access the package namespace via But I can see how this is confusing, it should probably be more obvious than it is right now, or at least not tell you it is submitting jobs when it isn't. |
Yes, that was exactly it! Thanks so much for your response. I have to admit that I had seen the A couple of things that would have tipped me off immediately what the problem was:
I'd be happy to try and tackle any of those tasks in a PR if you'd be interested (presumably the first 2 are trivial). Thanks again for this wonderful package! |
I'd be happy to take a PR. I suggest 1 and 3:
|
Thank you so much for this package. I've started it as a parallel backend for a drake pipeline, and have been very impressed over the performance improvements that I've observed. I'm interested in evaluating the use of clustermq / rzmq in settings outside of drake, but seemingly can't get the example using foreach listed in the User Guide (in the subsection titled "As parallel foreach backend") to work. What am I missing here?
In the example below on my 4-core machine, I would expect the following code to run in close to 5 seconds, yet it runs in close to 20 seconds. When I use similar code to run some heavy processing, I'm only observing one core doing significant work.
(Note that the text of this issue is copied from a Stack Overflow question: https://stackoverflow.com/questions/62134030/using-clustermq-r-package-as-a-parallel-backend-for-foreach).
The text was updated successfully, but these errors were encountered: