I want to pass a variable to my workers inside a function (see minimum example below) but I get stuck on passobj. I assume this is because passobj is evaluated at the global scope where the variable is not defined? Is there any way to get this to work?
I work on 0.5.1 for ParallelDataTransfer and Julia 1.8.4.
using Distributed
addprocs(4)@everywhere using Distributed, ParallelDataTransfer
function testPass(a::Vector{Float64})
passobj(1, workers(), [:a])
endtestPass(rand(10))