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
ISSUE: foreach with doParallel and clustermq backends returns different results #126
Comments
Can you simplify your example a bit? For instance, the inner |
Internal cycle can be executed using registerDoParallel or registerDoSEQ, it does not change the result. However the result is different if we use registerDoParallel (registerDoSEQ) or register_dopar_cmq (before external foreach). |
Here is hack that solved this issue for me: ... and I am calling it right after we've finished building a job_result: |
Minimal example: register_dopar_cmq(n_jobs=0)
res = foreach(i=1:3, .combine=c) %dopar% sqrt(i)
cmp = foreach(i=1:3, .combine=c) %do% sqrt(i) Fixed in 1f045e2. |
I am trying to implement nested loops using clustermq and doParallel.
I noticed incosistent behavior. For example:
The text was updated successfully, but these errors were encountered: