Precompilation error using HPC

@simonbyrne Thanks for writing this package. Could you provide a little more detail on how to use it? I want to run a script that looks like this:

using Distributed
@everywhere push!(LOAD_PATH, ".")
using Pkg
Pkg.activate(".")
Pkg.instantiate() # download correct versions only on one worker
using MyPackage # trying to avoid race condition by loading on a single worker first
@everywhere using Pkg
@everywhere Pkg.activate(".")
@everywhere using MyPackage

foo() # defined in MyPackage

I’m having a hard time understanding how/where to incorporate your instantiate_precompile function into this flow.

2 Likes