Closed mikemeredith closed 4 years ago
Good idea. @adamdsmith any chance you might have time to add this? @
I’ll try to knock it out this morning.
Great, thanks. What do you think about calling the argument nCores
or n.cores
or something shorter than coresToUse
?
This also should be added to crossVal. I can add that based on whatever Adam calls the argument.
The parboot function already has an argument nsim
so to avoid multiple case types within the same function call I'll go with ncores
unless there's strong objection.
Sounds good to me
Great, thanks a lot! -- Mike
hi fellas, thanks a lot for this... I will recompile and upload a new unmarked next week I hope. I got some hate mail from CRAN about some issue with the current version which might get the package yanked if it doesn't get resolved... (something that doesn't work with R 4.0). Will send this email around.. regards andy
On Fri, Dec 6, 2019 at 6:22 PM mikemeredith notifications@github.com wrote:
Great, thanks a lot! -- Mike
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rbchan/unmarked/issues/149?email_source=notifications&email_token=AAHGZC5MJWABDQBBYXLIMOLQXLNEZA5CNFSM4JWI4362YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGFVH4Y#issuecomment-562779123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHGZC7A7MWTSIBENMRRFPDQXLNEZANCNFSM4JWI436Q .
Regarding that error, see #151
Running
parboot
withparallel=TRUE
obviously makes sense, but that currently means running workers on all-but-one of the available cores. If there are other apps using multiple cores, that causes problems.I often have multiple instances of R running on a 24-core box, generally with
jagsUI::jags
taking 3 cores each. Trying to run a script withparboot
on 23 cores at the same time is messy and means the timings fromjags
are meaningless.It should be straightforward to add
coresToUse
to the arguments list, with something likeif(missing(coresToUse)) coresToUse <- detectCores() - 1
.Thanks, Mike