Skip to content

Add production Enzyme gradient#58

Open
krystophny wants to merge 20 commits into
developfrom
ad-12b-production-enzyme-gradient
Open

Add production Enzyme gradient#58
krystophny wants to merge 20 commits into
developfrom
ad-12b-production-enzyme-gradient

Conversation

@krystophny

@krystophny krystophny commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • compile the existing fixed-map flat energy kernel and its Enzyme gradient into libGVEC
  • reuse the generated Fortran modules instead of maintaining a second kernel implementation
  • replace the standalone AD fixture with a test of the production library symbols

Verification

Failing before on fd3b3d0:

$ nm -g --defined-only <parent-build>/lib/libGVEC.a | rg ' [Tt] gvec_mhd3d_flat_energy_gradient$'
<no output; exit 1>

Passing after:

$ fo
Static: OK (96 modules, 96 changed, 96 affected)
Build: OK
Tests: skipped, no affected tests
Lint: OK
All stages passed (.4s)

$ ctest --test-dir <rz-build> --output-on-failure -R '^gvec_enzyme_'
100% tests passed, 0 tests failed out of 5

$ ctest --test-dir <cyl-build> --output-on-failure -R '^gvec_enzyme_'
100% tests passed, 0 tests failed out of 5

Fresh RZ and cylindrical builds completed 152/152 targets. Each archive contains one production energy definition and one production gradient definition, with no unresolved __enzyme_* symbols.

@krystophny krystophny force-pushed the ad-12b-production-enzyme-gradient branch from cdc10c4 to 6e11409 Compare July 9, 2026 20:46
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.

1 participant