Pacific-salmon-assess / simest-tv

Simulation-Estimation routines for testing time-varying Stock recruitment models
GNU General Public License v3.0
0 stars 0 forks source link

add parallel computing for rstan? #1

Open dagreenberg opened 2 years ago

dagreenberg commented 2 years ago

options(mc.cores = parallel::detectCores())

May help speed things up. Note: I noticed the chains are running for 2000 iterations as well. Probably overkill with 6 chains. I would think 700 (w/ 200 burn-in) = 500*6 = 3000 iterations should suffice?

catarinawor commented 2 years ago

I did already implement the options(mc.cores = parallel::detectCores()) on the Est.R file!

I will reduce the number of samples =)