Skip to content

Possible typo LLVM instead of LVM in lower_convention? #2664

@ymardoukhi

Description

@ymardoukhi

LVM.API.LLVMVerifyFunction(wrapper_f, LLVM.API.LLVMPrintMessageAction),

I hit this error when dealing with @views.

ERROR: UndefVarError: `LVM` not defined in `Enzyme.Compiler`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] (::Enzyme.Compiler.var"#359#366"{LLVM.Module, LLVM.Function})(io::IOBuffer)
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:4402
  [2] sprint(::Function; context::Nothing, sizehint::Int64)
    @ Base ./strings/io.jl:114
  [3] sprint(::Function)
    @ Base ./strings/io.jl:107
  [4] lower_convention(functy::Type, mod::LLVM.Module, entry_f::LLVM.Function, actualRetType::Type, RetActivity::Type, TT::Union{…}, run_enzyme::Bool)
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:4400
  [5] compile_unhooked(output::Symbol, job::GPUCompiler.CompilerJob{…})
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:4713
  [6] compile(target::Symbol, job::GPUCompiler.CompilerJob; kwargs::@Kwargs{})
    @ GPUCompiler ~/.julia/packages/GPUCompiler/Gp8bZ/src/driver.jl:67
  [7] compile
    @ ~/.julia/packages/GPUCompiler/Gp8bZ/src/driver.jl:55 [inlined]
  [8] _thunk(job::GPUCompiler.CompilerJob{…}, postopt::Bool)
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:5946
  [9] _thunk
    @ ~/.julia/dev/Enzyme/src/compiler.jl:5944 [inlined]
 [10] cached_compilation
    @ ~/.julia/dev/Enzyme/src/compiler.jl:6001 [inlined]
 [11] thunkbase(mi::Core.MethodInstance, World::UInt64, FA::Type{…}, A::Type{…}, TT::Type, Mode::Enzyme.API.CDerivativeMode, width::Int64, ModifiedBetween::NTuple{…} where N, ReturnPrimal::Bool, ShadowInit::Bool, ABI::Type, ErrIfFuncWritten::Bool, RuntimeActivity::Bool, StrongZero::Bool, edges::Vector{…})
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:6117
 [12] thunk_generator(world::UInt64, source::Union{…}, FA::Type, A::Type, TT::Type, Mode::Enzyme.API.CDerivativeMode, Width::Int64, ModifiedBetween::NTuple{…} where N, ReturnPrimal::Bool, ShadowInit::Bool, ABI::Type, ErrIfFuncWritten::Bool, RuntimeActivity::Bool, StrongZero::Bool, self::Any, fakeworld::Any, fa::Type, a::Type, tt::Type, mode::Type, width::Type, modifiedbetween::Type, returnprimal::Type, shadowinit::Type, abi::Type, erriffuncwritten::Type, runtimeactivity::Type, strongzero::Type)
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/compiler.jl:6312
 [13] augfwd_with_return(::Val{…}, ::Val{…}, ::Val{…}, ::Val{…}, ::Type{…}, ::Val{…}, ::Type{…}, ::Type{…}, ::typeof(QruiseToolset._func), ::Nothing, ::Active{…}, ::Duplicated{…})
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/rules/jitrules.jl:1284
 [14] macro expansion
    @ ~/.julia/dev/Enzyme/src/rules/jitrules.jl:1383 [inlined]
 [15] runtime_iterate_augfwd(::Type{…}, ::Val{…}, ::Val{…}, ::Val{…}, ::Val{…}, ::Val{…}, ::typeof(QruiseToolset._func), ::Nothing, ::Tuple{…}, ::Base.RefValue{…}, ::Vector{…}, ::Vector{…}, ::Vector{…}, ::Vector{…})
    @ Enzyme.Compiler ~/.julia/dev/Enzyme/src/rules/jitrules.jl:1423

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions