|
Thanks for this helpful package again. I am not very sure how will foreach jobs be submitted when both n_jobs and cores are given? Does one override the other? |
Answered by
mschubert
Dec 12, 2020
Replies: 3 comments
|
Jobs is the number of jobs submitted, cores is the number of cores requested per job. So, for instance, you can use Hope that helps 😄 |
0 replies
Answer selected by
mschubert
|
Thanks that does help a lot! So if I submit n_jobs = 32 and cores = 32, it will actually submit 32*32 core requests, right? So as you said, the wise thing to do is n_jobs = 32 and core = 1 since whatever is inside foreach loop may not parallelize well... |
0 replies
|
Yes, exactly! This is also true for using |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jobs is the number of jobs submitted, cores is the number of cores requested per job.
So, for instance, you can use
mclapplywithin each job that then makes use of the cores. But generally, I would recommend to parallelize in jobs with one core.Hope that helps 😄