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 computing in TMBhelper #16

Open
fishecology7 opened this issue Apr 8, 2022 · 1 comment
Open

parallel computing in TMBhelper #16

fishecology7 opened this issue Apr 8, 2022 · 1 comment

Comments

@fishecology7
Copy link

Hi, I am trying to use the fit_tmb function in the TMBhelper package. The computation time of the following step was too long, and my computer still have extra cores which can be better used to save time. I have set the parallel computing environment on my computer, but didnot find the option to use it from parameters of the fit_tmb function. Any suggestions for this? and a case will be appreciated!

Opt = TMBhelper::fit_tmb( obj=Obj, lower = TmbList[["Lower"]], upper = TmbList[["Upper"]],
getsd = TRUE, savedir = DateFile, bias.correct = TRUE,
newtonsteps = 4, loopnum=3, getReportCovariance = TRUE, getJointPrecision = TRUE,
bias.correct.control = list( sd = FALSE, split = NULL, nsplit = 1, vars_to_correct = "Index" ) )

Thank you so much!

Yunlong from YSFRI

@Cole-Monnahan-NOAA
Copy link

@fishecology7 newtonsteps=4, bias corrections, and getJointPrecision=TRUE will likely all add a lot of time. I suggest you pare back some of these arguments to simply optimizing and see if that is too slow. Then add each one back in to see what step of fitting is too slow.

Parallelization has to be done in the template as far as I know. See e.g., http://kaskr.github.io/adcomp/linreg_parallel_8cpp-example.html

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