Skip to content

Add Fortran OpenMP tests - #3160

Open
joewallwork wants to merge 8 commits into
mainfrom
3065_fortran-openmp-tests
Open

Add Fortran OpenMP tests#3160
joewallwork wants to merge 8 commits into
mainfrom
3065_fortran-openmp-tests

Conversation

@joewallwork

Copy link
Copy Markdown
Collaborator

Closes #3065

This PR adds a variant of the square example for Fortran+OpenMP.

It loops over the same batch of values in the BatchMode test, dispatching to OpenMP, and computes the corresponding derivatives via reverse mode.

Currently, this seems to work fine at -O0 and -O1, but not at -O2 and -O3.

Note that I also enabled the Fortran BatchMode tests as I noticed they weren't hooked up in enzyme/test/Fortran/CMakeLists.txt.

@joewallwork joewallwork self-assigned this Aug 21, 2026
@joewallwork joewallwork added fortran Related to Enzyme's Fortran bindings openmp labels Aug 21, 2026
@joewallwork
joewallwork marked this pull request as ready for review August 21, 2026 10:10
@joewallwork
joewallwork requested a review from wsmoses August 21, 2026 10:10
@joewallwork

Copy link
Copy Markdown
Collaborator Author

The failing Julia tests don't seem to be relevant to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fortran Related to Enzyme's Fortran bindings openmp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for Fortran + OpenMP

1 participant