Use at-consistent_overlay for 1.11 compatibility.#2492
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2492 +/- ##
==========================================
+ Coverage 73.06% 73.26% +0.20%
==========================================
Files 157 157
Lines 14930 14930
==========================================
+ Hits 10908 10938 +30
+ Misses 4022 3992 -30 ☔ View full report in Codecov by Sentry. |
Closed
|
Exactly, I think using |
Member
Author
|
Yeah. Hopefully that doesn't lead to inference issues a la JuliaLang/julia#52938. |
1144588 to
30fe600
Compare
amontoison
pushed a commit
to amontoison/CUDA.jl
that referenced
this pull request
Sep 18, 2024
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.
Address another part of #2241
@aviatesk I just realized though that we violate the requirements of
@consistent_overlaywithout@device_functionmacro, which is used to implement intrinsics that are not CPU compatible (they make LLVM abort) so we make the origin methoderror()while the overlay performs the expected operation:CUDA.jl/src/device/utils.jl
Lines 16 to 36 in 123977e
IIUC this is not valid with
@consistent_overlay. Do you have another suggestion to implement this in a way that's compatible with the effects system?