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

CUDA.jl reverse CI broke again #2193

Closed
maleadt opened this issue Dec 10, 2024 · 2 comments
Closed

CUDA.jl reverse CI broke again #2193

maleadt opened this issue Dec 10, 2024 · 2 comments

Comments

@maleadt
Copy link

maleadt commented Dec 10, 2024

extensions/enzyme  (2) |         failed at 2024-12-10T18:11:35.219
Testing finished in 6 minutes, 30 seconds, 353 milliseconds
Worker 2 failed running test extensions/enzyme:
Some tests did not pass: 15 passed, 0 failed, 2 errored, 0 broken.
extensions/enzyme: Error During Test at /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/extensions/enzyme.jl:42
  Got exception outside of a @test
  AssertionError: eltype(rt) != Union{}
  Stacktrace:
    [1] enzyme!(job::CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams}, mod::LLVM.Module, primalf::LLVM.Function, TT::Type, mode::Enzyme.API.CDerivativeMode, width::Int64, parallel::Bool, actualRetType::Type, wrap::Bool, modifiedBetween::Tuple{Vararg{Bool, N}} where N, returnPrimal::Bool, expectedTapeType::Type, loweredArgs::Set{Int64}, boxedArgs::Set{Int64})
      @ Enzyme.Compiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:1371
    [2] codegen(output::Symbol, job::CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams}; libraries::Bool, deferred_codegen::Bool, optimize::Bool, toplevel::Bool, strip::Bool, validate::Bool, only_entry::Bool, parent_job::CompilerJob{PTXCompilerTarget, CUDA.CUDACompilerParams})
      @ Enzyme.Compiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:4425
    [3] codegen
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:3223 [inlined]
    [4] (::GPUCompiler.var"#190#201"{CompilerJob{PTXCompilerTarget, CUDA.CUDACompilerParams}, CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams}})()
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:224
    [5] get!(default::GPUCompiler.var"#190#201"{CompilerJob{PTXCompilerTarget, CUDA.CUDACompilerParams}, CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams}}, h::Dict{CompilerJob, String}, key::CompilerJob{Enzyme.Compiler.EnzymeTarget, Enzyme.Compiler.EnzymeCompilerParams})
      @ Base ./dict.jl:479
    [6] macro expansion
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:223 [inlined]
    [7] emit_llvm(job::CompilerJob; toplevel::Bool, libraries::Bool, optimize::Bool, cleanup::Bool, validate::Bool, only_entry::Bool)
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/utils.jl:108
    [8] emit_llvm
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/utils.jl:106 [inlined]
    [9] codegen(output::Symbol, job::CompilerJob; toplevel::Bool, libraries::Bool, optimize::Bool, cleanup::Bool, validate::Bool, strip::Bool, only_entry::Bool, parent_job::Nothing)
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:100
   [10] codegen(output::Symbol, job::CompilerJob)
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:82
   [11] compile(target::Symbol, job::CompilerJob; kwargs::@Kwargs{})
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:79
   [12] compile
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:74 [inlined]
   [13] #1145
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/compilation.jl:250 [inlined]
   [14] JuliaContext(f::CUDA.var"#1145#1148"{CompilerJob{PTXCompilerTarget, CUDA.CUDACompilerParams}}; kwargs::@Kwargs{})
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:34
   [15] JuliaContext(f::Function)
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/driver.jl:25
   [16] compile(job::CompilerJob)
      @ CUDA /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/compilation.jl:249
   [17] actual_compilation(cache::Dict{Any, CuFunction}, src::Core.MethodInstance, world::UInt64, cfg::CompilerConfig{PTXCompilerTarget, CUDA.CUDACompilerParams}, compiler::typeof(CUDA.compile), linker::typeof(CUDA.link))
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/execution.jl:237
   [18] cached_compilation(cache::Dict{Any, CuFunction}, src::Core.MethodInstance, cfg::CompilerConfig{PTXCompilerTarget, CUDA.CUDACompilerParams}, compiler::Function, linker::Function)
      @ GPUCompiler ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/packages/GPUCompiler/GnbhK/src/execution.jl:151
   [19] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/execution.jl:380 [inlined]
   [20] macro expansion
      @ ./lock.jl:267 [inlined]
   [21] cufunction(f::typeof(EnzymeCoreExt.meta_augf), tt::Type{Tuple{EnzymeCore.EnzymeRules.RevConfigWidth{1, false, false, (false, false), false}, typeof(square_kernel!), CuDeviceVector{Float32, 1}, Duplicated{CuDeviceVector{Float32, 1}}}}; kwargs::@Kwargs{})
      @ CUDA /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/execution.jl:375
   [22] cufunction(f::typeof(EnzymeCoreExt.meta_augf), tt::Type{Tuple{EnzymeCore.EnzymeRules.RevConfigWidth{1, false, false, (false, false), false}, typeof(square_kernel!), CuDeviceVector{Float32, 1}, Duplicated{CuDeviceVector{Float32, 1}}}})
      @ CUDA /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/execution.jl:372
   [23] #augmented_primal#41
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/ext/EnzymeCoreExt.jl:325
   [24] augmented_primal
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/ext/EnzymeCoreExt.jl:305 [inlined]
   [25] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/compiler/execution.jl:114 [inlined]
   [26] square!
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/extensions/enzyme.jl:19 [inlined]
   [27] diffejulia_square__23692wrap
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/extensions/enzyme.jl:0
   [28] macro expansion
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:5204 [inlined]
   [29] enzyme_call
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:4750 [inlined]
   [30] CombinedAdjointThunk
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/compiler.jl:4622 [inlined]
   [31] autodiff
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/Enzyme.jl:503 [inlined]
   [32] autodiff
      @ ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/Enzyme.jl:544 [inlined]
   [33] autodiff(mode::ReverseMode{false, false, FFIABI, false, false}, f::typeof(square!), args::Duplicated{CuArray{Float32, 1, CUDA.DeviceMemory}})
      @ Enzyme ~/.cache/julia-buildkite-plugin/depots/3cc01fab-3357-4a7a-9294-cde2d3115a97/dev/Enzyme/src/Enzyme.jl:516
   [34] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/extensions/enzyme.jl:47 [inlined]
   [35] macro expansion
      @ ~/.cache/julia-buildkite-plugin/julia_installs/bin/linux/x64/1.10/julia-1.10-latest-linux-x86_64/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [36] top-level scope
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/extensions/enzyme.jl:43
   [37] include
      @ ./client.jl:494 [inlined]
   [38] #11
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/runtests.jl:89 [inlined]
   [39] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/setup.jl:63 [inlined]
   [40] macro expansion
      @ ~/.cache/julia-buildkite-plugin/julia_installs/bin/linux/x64/1.10/julia-1.10-latest-linux-x86_64/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [41] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/setup.jl:63 [inlined]
   [42] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/utilities.jl:35 [inlined]
   [43] macro expansion
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/src/memory.jl:829 [inlined]
   [44] top-level scope
      @ /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/setup.jl:62
   [45] eval
      @ ./boot.jl:385 [inlined]
   [46] runtests(f::Function, name::String, time_source::Symbol)
      @ Main /var/lib/buildkite-agent/builds/gpuci-13/julialang/cuda-dot-jl/test/setup.jl:74
   [47] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::@Kwargs{})
      @ Base ./essentials.jl:892
   [48] invokelatest(::Any, ::Any, ::Vararg{Any})
      @ Base ./essentials.jl:889
   [49] (::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}})()
      @ Distributed ~/.cache/julia-buildkite-plugin/julia_installs/bin/linux/x64/1.10/julia-1.10-latest-linux-x86_64/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:287
   [50] run_work_thunk(thunk::Distributed.var"#110#112"{Distributed.CallMsg{:call_fetch}}, print_error::Bool)
      @ Distributed ~/.cache/julia-buildkite-plugin/julia_installs/bin/linux/x64/1.10/julia-1.10-latest-linux-x86_64/share/julia/stdlib/v1.10/Distributed/src/process_messages.jl:70
@wsmoses
Copy link
Member

wsmoses commented Dec 11, 2024

that....is very confusing...

@wsmoses
Copy link
Member

wsmoses commented Dec 15, 2024

resolved by #2200

@wsmoses wsmoses closed this as completed Dec 15, 2024
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