I’d like to parallelize my program so I start my program with
julia --project -p 2 -L a.jl main.jl
where the computation is in
main.jl is a driver script. Inside
import JSON, and if I don’t add the
-p 2 argument the program will run fine, but with this option, I now have the error:
ERROR: On worker 2: LoadError: ArgumentError: Package JSON not found in current path: - Run `import Pkg; Pkg.add("JSON")` to install the JSON package.
It seems like I’m missing something, like instruct the workers to also include the libraries. What should I do in this case?