Repository navigation
Move the legacy deferred_codegen_jobs to deprecated.jl - #1131
Merged
Merged
Conversation
Registering jobs there directly races with concurrent compilations, and back-ends now use `deferred_codegen!` instead. The dictionary and its lookup stay, since released back-ends and Enzyme.jl still use them, but they now live with the other interfaces to remove in the next breaking release. There is no deprecation warning yet: Enzyme.jl writes it from a generated function and has no replacement.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1131 +/- ##
==========================================
+ Coverage 93.01% 93.12% +0.10%
==========================================
Files 32 32
Lines 8562 8552 -10
==========================================
Hits 7964 7964
+ Misses 598 588 -10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1128. Back-ends now request deferred compilation with
deferred_codegen!(JuliaGPU/CUDA.jl#3640, JuliaGPU/Metal.jl#1190, JuliaGPU/OpenCL.jl#636, JuliaGPU/KernelAbstractions.jl#998), so the old way of registering jobs directly inGPUCompiler.deferred_codegen_jobsis only kept for compatibility.This moves the dictionary and its lookup to
src/deprecated.jl, with a note on what to remove in the next breaking release. Nothing changes functionally.It is not marked with
@deprecate_binding. Enzyme.jl imports and writes the dictionary from a generated function and has no replacement yet (EnzymeAD/Enzyme.jl#3511), so a warning would reach its users without a way to act on it. Released versions of the back-ends write it too. Once Enzyme has moved and the back-end PRs are released, a deprecation warning can follow.The tests that use the legacy path (
test/native.jland the Enzyme helper) are marked as such.native,ptxandmetaltests pass locally on Julia 1.13 withCI=true.