Skip to content

Conversation

@ChrisRackauckas-Claude
Copy link

Summary

Fixes the Enzyme extension that was recently merged to use the correct package name and import.

Problem

The current extension uses:

  • import EnzymeRules (incorrect - EnzymeRules is not a standalone package)
  • EnzymeRules = "b2b7a20a-8ddc-4497-9a0a-d49b80ff0020" as weakdep (incorrect UUID)
  • SciMLBaseEnzymeExt = "EnzymeRules" (incorrect)

This causes the extension to fail to load because EnzymeRules is not a real package - it's part of Enzyme.

Solution

Correct the extension to use proper Enzyme setup:

  • import Enzyme: EnzymeRules
  • Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" as weakdep ✅
  • SciMLBaseEnzymeExt = "Enzyme"
  • Enzyme = "0.13" compat ✅

Context

This fixes the AbstractSensitivityAlgorithm inactive_type rule for SciMLSensitivity.jl#1225 where Enzyme fails when sensealg is passed to ODEProblem constructor instead of solve().

The extension itself is correct - only the package references needed to be fixed.

🤖 Generated with Claude Code

EnzymeRules is not a standalone package - it's part of Enzyme.
Correct extension setup:
- import Enzyme: EnzymeRules (not import EnzymeRules)
- Enzyme as weakdep (not EnzymeRules)
- SciMLBaseEnzymeExt = "Enzyme" (not "EnzymeRules")

This fixes the AbstractSensitivityAlgorithm inactive_type rule for
SciMLSensitivity.jl#1225 where Enzyme fails when sensealg is passed
to ODEProblem constructor.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 3563d34 into SciML:master Sep 8, 2025
48 of 63 checks passed
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

Successfully merging this pull request may close these issues.

2 participants