Skip to content

Conversation

AstitvaAggarwal
Copy link
Member

@AstitvaAggarwal AstitvaAggarwal commented Oct 1, 2025

Checklist

  1. The current PR handles differentiating when using Mooncake for functions tested in test/adjoint.jl , solve(). We reuse the current Chainrules rules defined in src/adjoint.jl. These rules are now used by Zygote and Mooncake.

  2. An rrule for solve! are required, followed by tests for Mooncake (relevant to the ones in the Enzyme.jl Extension testfile). I will add this is a subsequent seperate PR.

NOTE : Mooncake only works with Julia (lts) as of now, due to how it handles IR changes in different Julia versions

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Add any other context about the problem here.

@AstitvaAggarwal AstitvaAggarwal changed the title Mooncake, LinearSolve integration Mooncake, LinearSolve integration - 1 Oct 12, 2025
include("wrappers.jl")

import Base: (\), size, getproperty, setproperty!, propertynames, show,
import Base: size, getproperty, setproperty!, show,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this about?

Copy link
Member Author

@AstitvaAggarwal AstitvaAggarwal Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was getting ExplicitImports, Aqua errors in all / Tests - NoPre since the import were not being technically directly used. In the same file, they are used as Base.propertynames etc. so I removed the imports.

Copy link
Member Author

@AstitvaAggarwal AstitvaAggarwal Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisRackauckas ChrisRackauckas merged commit 9028620 into SciML:main Oct 13, 2025
121 of 136 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