Making a struct definition available on the cluster

Define the struct everywhere according to

@everywhere struct Ctrl
    n::Int64
    q::Bool
end

This defines the struct on all workers that are running while the struct is defined, so start your workers before defining the struct like above.

PS: also, don’t forget to quote your code

2 Likes