Skip to content

Reorganization in preparation for Enzyme automatic differentiation PR#126

Merged
pelesh merged 4 commits into
developfrom
nicholson/autodiff-prep
Jun 5, 2025
Merged

Reorganization in preparation for Enzyme automatic differentiation PR#126
pelesh merged 4 commits into
developfrom
nicholson/autodiff-prep

Conversation

@nkoukpaizan

@nkoukpaizan nkoukpaizan commented Jun 4, 2025

Copy link
Copy Markdown
Collaborator

Description

Reorganization in preparation for Enzyme automatic differentiation PR.

Proposed changes

  • Moved src/LinearAlgebra/SparsityPattern/ to src/AutomaticDifferentiation/DependencyTracking/
  • Placed COO_Matrix into the GridKit::LinearAlgebra namespace.
  • Added ~enzyme spec to CI. Since Enzyme is an optional dependency for now, we need to ensure we can still build without it.

Checklist

  • All tests pass.
  • Code compiles cleanly with flags -Wall -Wpedantic -Wconversion -Wextra.
  • The new code follows GridKit™ style guidelines.
  • There are unit tests for the new code.
  • The new code is documented.
  • The feature branch is rebased with respect to the target branch.

Further comments

This PR should not be a heavy load to review.
This is an attempt to break up #124 into more manageable PRs. I am working on disabling Enzyme derivatives and related tests when GRIDKIT_ENABLE_ENZYME=Off.

@nkoukpaizan nkoukpaizan self-assigned this Jun 4, 2025

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good! Just rebase and fix any compiler warnings. I also suggest to add a todo note in Model/Evaluator.hpp

Comment thread src/Model/Evaluator.hpp
@nkoukpaizan nkoukpaizan force-pushed the nicholson/autodiff-prep branch from 64e16d5 to 70e9d4f Compare June 4, 2025 22:50

@pelesh pelesh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Builds cleanly, tests pass, good to go.

@pelesh pelesh merged commit 7c5c219 into develop Jun 5, 2025
4 checks passed
@pelesh pelesh deleted the nicholson/autodiff-prep branch June 10, 2025 18:03
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