Skip to content

Fix jit lookup on master - #3491

Merged
wsmoses merged 1 commit into
EnzymeAD:mainfrom
yuyichao:lookup
Aug 31, 2026
Merged

wsmoses merged 1 commit into
EnzymeAD:mainfrom
yuyichao:lookup

Conversation

@yuyichao

@yuyichao yuyichao commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

In #3102, addition JITDylib is passed to the LLVM.jl API to satisfy the API change. However, as @wsmoses pointed out the JITDylib passed in for lookup is a fresh one, which does not include the jitted function, causing the lookup to fail on recent julia version.

There are still two uses of JIT.lookup in src/compiler/validations.jl that does not pass in the JITDylib explicitly but those are looking up internal symbols AFAICT so it is probably fine. The current version also keeps all explicit use of JITDylib to the orcv2.jl file which seems to be the intention.

In EnzymeAD#3102, addition JITDylib is passed to the LLVM.jl API to satisfy the API change. However, [as at-wsmoses pointed out](EnzymeAD#3102) the JITDylib passed in for lookup is a fresh one, which does not include the jitted function, causing the lookup to fail on recent julia version.

There are still two uses of `JIT.lookup` in `src/compiler/validations.jl` that does not pass in the `JITDylib` explicitly but those are looking up internal symbols AFAICT so it is probably fine. The current version also keeps all explicit use of JITDylib to the `orcv2.jl` file which seems to be the intention.
@codecov

codecov Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.99%. Comparing base (8e583f6) to head (78bc409).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3491      +/-   ##
==========================================
- Coverage   78.61%   76.99%   -1.62%     
==========================================
  Files          68       68              
  Lines       22930    22668     -262     
==========================================
- Hits        18026    17453     -573     
- Misses       4904     5215     +311     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wsmoses
wsmoses merged commit 4afa1ab into EnzymeAD:main Aug 31, 2026
71 of 79 checks passed
@vchuravy vchuravy mentioned this pull request Sep 5, 2026
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.

3 participants