Julia environments with multiple workers

How is the instantiation of an environment handled in multiple-worker settings? Should I run

using Distributed
@everywhere begin
	using Pkg

? I do seem to get some warning messages about access to caches during pre-compilation and such. Should then the activation of the environment be performed only on the process 1?

1 Like

Bump. Any parallel-computing experts still up?

The best discussion I am aware of is Packages and workers, which links to this issue: https://github.com/JuliaLang/julia/issues/28781. As far as I am aware, Pkg/code-loading does not provide any mechanisms to further streamline the process.

1 Like

Great find, thanks a million!