# Precompilation error using HPC

**URL:** <https://discourse.julialang.org/t/precompilation-error-using-hpc/17094>\
**Category:** New to Julia\
**Created:** [November 2, 2018, 5:58pm UTC](https://discourse.julialang.org/t/precompilation-error-using-hpc/17094 "2018-11-02T17:58:17Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![torgo](https://avatars.discourse-cdn.com/v4/letter/t/94ad74/32.png) [@torgo](https://discourse.julialang.org/u/torgo)\
**Post date:** [August 18, 2020, 4:42pm UTC](https://discourse.julialang.org/t/precompilation-error-using-hpc/17094/21 "2020-08-18T16:42:01Z")

</div>

@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:

```julia
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.

[Previous page](https://discourse.julialang.org/t/precompilation-error-using-hpc/17094.md?page=1)
