probcomp / GenExperimental.jl

Featherweight embedded probabilistic programming language and compositional inference programming library
MIT License
17 stars 2 forks source link

Warnings with 'replacing module Gen' when using worker processes #25

Closed marcoct closed 7 years ago

marcoct commented 7 years ago

You can add new worker processes with addprocs(2). However, when I tried this, Gen gave warnings for many of the cells. Find the correct way to use multiple processes in Julia with the IJulia notebooks to avoid warnings like that.

marcoct commented 7 years ago

In Julia 0.5.2 the following order avoids warnings:

addprocs(32);
import Gen
@everywhere using Gen;

Note that this might change in 0.6. I read what appeared to be active discussion on this topic in the Julia repo. https://github.com/probcomp/Gen.jl/issues/21