Skip to content

"Enzyme: The original primal code hits this error condition, thus differentiating it does not make sense" very unhelpful #2750

@vchuravy

Description

@vchuravy

I have never felt so gaslit by an exception: What error, why? how?

ERROR: LoadError: Enzyme execution failed.
Enzyme: The original primal code hits this error condition, thus differentiating it does not make sense

Stacktrace:
  [1] construct
    @ ~/.julia/packages/KernelAbstractions/X5fk1/src/KernelAbstractions.jl:779 [inlined]
  [2] _esvolumeterm_dir!
    @ ~/.julia/packages/KernelAbstractions/X5fk1/src/macros.jl:61 [inlined]
  [3] esvolumeterm_dir!
    @ ~/.julia/packages/KernelAbstractions/X5fk1/src/macros.jl:68 [inlined]
  [4] #launch_volumeterm#8
    @ ~/src/Raven/src/balancelaws/dgsem.jl:208
  [5] launch_volumeterm
    @ ~/src/Raven/src/balancelaws/dgsem.jl:163 [inlined]
  [6] #_#4
    @ ~/src/Raven/src/balancelaws/dgsem.jl:97
  [7] DGSEM
    @ ~/src/Raven/src/balancelaws/dgsem.jl:84 [inlined]
  [8] rhs
    @ ~/src/Raven/ext/RavenSciMLBaseExt.jl:6 [inlined]
  [9] ODEFunction
    @ ~/.julia/packages/SciMLBase/RPW6n/src/scimlfunctions.jl:2597 [inlined]
 [10] F!
    @ ~/src/Ariadne/libs/Theseus/src/rosenbrock/rosenbrock.jl:35 [inlined]
 [11] F!
    @ ~/src/Ariadne/libs/Theseus/src/rosenbrock/rosenbrock.jl:0 [inlined]
 [12] fwddiffejulia_F__27283_inner_19wrap
    @ ~/src/Ariadne/libs/Theseus/src/rosenbrock/rosenbrock.jl:0
 [13] macro expansion
    @ ~/src/Enzyme/src/compiler.jl:5887 [inlined]
 [14] enzyme_call
    @ ~/src/Enzyme/src/compiler.jl:5421 [inlined]
 [15] ForwardModeThunk
    @ ~/src/Enzyme/src/compiler.jl:5323 [inlined]
 [16] autodiff
    @ ~/src/Enzyme/src/Enzyme.jl:673 [inlined]

"Enzyme: The original primal code hits this error condition, thus differentiating it does not make sense",

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