Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UndefVarError: compile_cache not defined #470

Closed
simonbyrne opened this issue Jun 15, 2023 · 1 comment
Closed

UndefVarError: compile_cache not defined #470

simonbyrne opened this issue Jun 15, 2023 · 1 comment

Comments

@simonbyrne
Copy link
Contributor

simonbyrne commented Jun 15, 2023

I'm getting occasional errors during CUDA precompilation on Julia 1.9.0

ERROR: LoadError: UndefVarError: `compile_cache` not defined
Stacktrace:
  [1] (::GPUCompiler.var"#107#108")()
    @ GPUCompiler /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/GPUCompiler/NVLGB/src/rtlib.jl:153
  [2] lock(f::GPUCompiler.var"#107#108", l::ReentrantLock)
    @ Base ./lock.jl:229
  [3] reset_runtime()
    @ GPUCompiler /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/GPUCompiler/NVLGB/src/rtlib.jl:152
  [4] top-level scope
    @ /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/CUDA/pCcGc/src/device/runtime.jl:9
  [5] include(mod::Module, _path::String)
    @ Base ./Base.jl:457
  [6] include(x::String)
    @ CUDA /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/CUDA/pCcGc/src/CUDA.jl:1
  [7] top-level scope
    @ /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/CUDA/pCcGc/src/CUDA.jl:56
  [8] include
    @ ./Base.jl:457 [inlined]
  [9] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2010
 [10] top-level scope
    @ stdin:2
in expression starting at /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/CUDA/pCcGc/src/device/runtime.jl:9
in expression starting at /central/scratch/esm/slurm-buildkite/climacore-ci/2222/depot/default/packages/CUDA/pCcGc/src/CUDA.jl:1
in expression starting at stdin:2

e.g. https://buildkite.com/clima/climacore-ci/builds/2222#0188b934-b05e-40f6-adac-591ad68a1ffa/138-336

The interesting thing is that compile_cache is set during __init__, so I wonder if this is related to JuliaLang/julia#48999?

@vchuravy any ideas?

@maleadt
Copy link
Member

maleadt commented Jun 15, 2023

I wonder if this is related to JuliaLang/julia#48999?

Looks like that indeed. Maybe that's why the Scratch.jl README has a download_cache = "" at top level? Looks fishy, though.

simonbyrne added a commit to simonbyrne/GPUCompiler.jl that referenced this issue Jun 15, 2023
@maleadt maleadt closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants