Skip to content

GPUCompiler 0.27 removes CodeCache on Julia 1.11 #170

Open
@minecraft2048

Description

@minecraft2048

While trying to make StaticCompiler runs on Julia 1.11, I've tried to set GPUCompiler compat to 0.27, and it failed to precompile:

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

StaticCompiler 

Failed to precompile StaticCompiler [81625895-6c0f-48fc-b932-11a18313743c] to "/home/ifrit/.julia/compiled/v1.11/StaticCompiler/jl_UhgkE5".
WARNING: could not import GPUCompiler.CodeCache into StaticCompiler
ERROR: LoadError: UndefVarError: `CodeCache` not defined in `StaticCompiler`
Stacktrace:
 [1] top-level scope
   @ ~/scratchspace/rtdsp/StaticCompiler.jl/src/interpreter.jl:10
 [2] include(mod::Module, _path::String)
   @ Base ./Base.jl:557
 [3] include(x::String)
   @ StaticCompiler ~/scratchspace/rtdsp/StaticCompiler.jl/src/StaticCompiler.jl:1
 [4] top-level scope
   @ ~/scratchspace/rtdsp/StaticCompiler.jl/src/StaticCompiler.jl:22
 [5] include
   @ ./Base.jl:557 [inlined]
 [6] 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::Nothing)
   @ Base ./loading.jl:2806
 [7] top-level scope
   @ stdin:4
in expression starting at /home/ifrit/scratchspace/rtdsp/StaticCompiler.jl/src/interpreter.jl:10
in expression starting at /home/ifrit/scratchspace/rtdsp/StaticCompiler.jl/src/StaticCompiler.jl:1

It turns out that GPUCompiler.jl uses Julia internal cache at 1.11: https://github.com/JuliaGPU/GPUCompiler.jl/blob/316668b6d34fc29cf48eb53280e254346ac94e51/src/jlgen.jl#L164 JuliaGPU/GPUCompiler.jl#545

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions