--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sincerely,
Mahdi Akbarzadeh,
PhD Candidate in Biostatistics;
School of Public Health,
Department of Biostatistics and Epidemiology,
Hi Mahdi --Yes you need to specify the "cores" option in the Rstan call to use parallel. Cores should be set to however many chains you will run in parallel.Bob, it is true, but it can also be a bit of a hassle because it can make Windows extremely sluggish if the number of processes > number of cores. I discovered that Stan can do Windows in parallel when I accidentally ran code from a cluster and had 10 parallel chains running. It did work (albeit very slowly).Re: Andrew, Windows cannot do parallel as easily as Macs/Linux because the mclapply function doesn't work (for reasons unique to the operating system), which is the easiest way to set it up. One has to instead use a different function, parLapply, which requires a lot more work.My Rstudio output currently looks like this:Click the Refresh button to see progress of the chainsstarting worker pid=5740 on localhost:11545 at 06:28:57.814starting worker pid=17108 on localhost:11545 at 06:28:58.714SAMPLING FOR MODEL 'Nominate: 1 dimension' NOW (CHAIN 1).Chain 1, Iteration: 1 / 1000 [ 0%] (Warmup)SAMPLING FOR MODEL 'Nominate: 1 dimension' NOW (CHAIN 2).Chain 2, Iteration: 1 / 1000 [ 0%] (Warmup)Chain 2, Iteration: 100 / 1000 [ 10%] (Warmup)Chain 1, Iteration: 100 / 1000 [ 10%] (Warmup)There are two R processes running, each using 1/3 of processor power and consuming only 100 MB of memory. Anyways, this all could be old news for Stan developers, but I had just realized it, so I thought I'd share.
On Wednesday, May 18, 2016 at 1:48:44 AM UTC+1, Mahdi Akbarzadeh wrote:
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.