-
Notifications
You must be signed in to change notification settings - Fork 5
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
Is it possible to optionally run multiple chains in parallel? #8
Comments
My preference would be to start looking into parallel execution a bit later on, for release 0.0.1 the basics have to work more or less. |
Hi goedman, Why |
Yes, that will be possible. I'm working on that. You must be running the master branch, which is in an in between state. Regards, Sent from my iPhone
|
Well, I've looked at this issue a bit closer now and implemented part of it. My preliminary conclusion is that running multiple chains in parallel is not a good match with Jags' structure. I will explain this in more detail below. What is right now in the Jags.jl branch "master" (I will likely move it to a separate branch in about 2 weeks), runs ncommands copies of Jags in parallel. Each copy can run multiple nchains. If nchains is set to 1, and dic or pop are requested, nchains for each command copy is increased and currently set to 3. I'm struggling with the fact that Jags also has a built-in strategy to use different RNGs for up to 4 chains within each Jags run. One possible approach is that I enforce different RNGs and appropriate seeds in the parallel copies through generating separate .jags files. For the next few weeks I want to think a bit more about this and maybe run some performance tests before proceeding. For now I suggest to use the Jags v0.0.3, not the "master" branch. |
Implemented in Jags-j0.3-v0.0.4 |
No description provided.
The text was updated successfully, but these errors were encountered: