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

GPUCompiler 0.27 removes CodeCache on Julia 1.11 #170

Open
minecraft2048 opened this issue Sep 28, 2024 · 0 comments
Open

GPUCompiler 0.27 removes CodeCache on Julia 1.11 #170

minecraft2048 opened this issue Sep 28, 2024 · 0 comments

Comments

@minecraft2048
Copy link

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

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

1 participant