Skip to content

Validate Enzyme pipeline versions#59

Open
krystophny wants to merge 15 commits into
developfrom
ad-10d2-enzyme-pipeline-validation
Open

Validate Enzyme pipeline versions#59
krystophny wants to merge 15 commits into
developfrom
ad-10d2-enzyme-pipeline-validation

Conversation

@krystophny

@krystophny krystophny commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • require matching LLVM major versions for Flang, opt, and llvm-link
  • load-probe unversioned Enzyme plugins during configuration
  • fail before compilation when the selected pipeline components are incompatible

Verification

Failing before on 189c6de:

$ cmake ... -DENZYME_LLVM_LINK_EXECUTABLE=<llvm-link-21>
-- Configuring done
-- Generating done

Passing after:

$ cmake ... -DENZYME_LLVM_LINK_EXECUTABLE=<llvm-link-21>
CMake Error at cmake/FindEnzyme.cmake:63 (MESSAGE):
  llvm-link LLVM 21 does not match opt LLVM 22

An invalid unversioned plugin likewise configured on the parent and is now rejected by the configure-time load probe. The matching LLVM 22 configuration built 149/149 targets and passed all four Enzyme tests.

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

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