How can I load modules on remote processes from within a function in process 1. In other words, I’m looking to do something like this:
addprocs(3)
function load()
@everywhere using Distributions
end
load()
How can I load modules on remote processes from within a function in process 1. In other words, I’m looking to do something like this:
addprocs(3)
function load()
@everywhere using Distributions
end
load()
I think that what is often used is either:
Calling this outside of any method.
@everywhere using Distributions
Calling this inside or outside a method.
@everywhere include("file_with_code_loading_packages.jl")