GPUCompiler.jl icon indicating copy to clipboard operation
GPUCompiler.jl copied to clipboard

Precompilation broken on 1.13/nightly

Open kshyatt opened this issue 2 weeks ago • 1 comments

cc https://buildkite.com/julialang/cuda-dot-jl/builds/6764#019aee16-1159-43d4-887c-a4dd0d4162bb

ERROR: LoadError: UndefVarError: `WorldView` not defined in `GPUCompiler`
Suggestion: this global was defined as `Compiler.WorldView` but not assigned a value.
Stacktrace:
  [1] ci_cache_lookup(cache::Compiler.OverlayCodeCache{Compiler.InternalCodeCache}, mi::Core.MethodInstance, min_world::UInt64, max_world::UInt64)
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/jlgen.jl:648
  [2] compile_method_instance(job::GPUCompiler.CompilerJob)
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/jlgen.jl:839
  [3] irgen(job::GPUCompiler.CompilerJob)
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/irgen.jl:4
  [4] emit_llvm(job::GPUCompiler.CompilerJob; kwargs::@Kwargs{})
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:200
  [5] emit_llvm(job::GPUCompiler.CompilerJob)
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:182
  [6] compile_unhooked(output::Symbol, job::GPUCompiler.CompilerJob; kwargs::@Kwargs{})
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:95
  [7] compile_unhooked
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:80 [inlined]
  [8] compile(target::Symbol, job::GPUCompiler.CompilerJob; kwargs::@Kwargs{})
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:67
  [9] compile
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:55 [inlined]
 [10] #145
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/precompile.jl:35 [inlined]
 [11] JuliaContext(f::GPUCompiler.var"#145#146"{GPUCompiler.CompilerJob{GPUCompiler.NativeCompilerTarget, GPUCompiler.var"##149".DummyCompilerParams}}; kwargs::@Kwargs{})
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:34
 [12] JuliaContext(f::Function)
    @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/driver.jl:25
 [13] macro expansion
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/precompile.jl:34 [inlined]
 [14] macro expansion
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/PrecompileTools/gn08A/src/workloads.jl:73 [inlined]
 [15] macro expansion
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/precompile.jl:25 [inlined]
 [16] macro expansion
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/PrecompileTools/gn08A/src/workloads.jl:121 [inlined]
 [17] top-level scope
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/precompile.jl:118
 [18] include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./Base.jl:310
 [19] top-level scope
    @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/GPUCompiler.jl:70
 [20] include(mod::Module, _path::String)
    @ Base ./Base.jl:309
 [21] include_package_for_output(pkg::Base.PkgId, input::String, syntax_version::VersionNumber, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:3250
 [22] top-level scope
    @ stdin:5
 [23] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [24] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:3092
 [25] include_string
    @ ./loading.jl:3102 [inlined]
 [26] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:342
 [27] _start()
    @ Base ./client.jl:577
in expression starting at /root/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/precompile.jl:3
in expression starting at /root/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/j4HFa/src/GPUCompiler.jl:1

This is on 1.7.5

kshyatt avatar Dec 05 '25 10:12 kshyatt

Changed upstream by JuliaLang/julia#59413

vchuravy avatar Dec 05 '25 12:12 vchuravy