-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ndims/eltype, and simplify parent type queries. #75
Conversation
Instead of returning the raw typename, provide the full type so that callers can use type variables, if required. Also provide a version that fully unpeels the array wrapper.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
===========================================
+ Coverage 83.56% 93.65% +10.08%
===========================================
Files 6 6
Lines 73 63 -10
===========================================
- Hits 61 59 -2
+ Misses 12 4 -8 ☔ View full report in Codecov by Sentry. |
cc @ChrisRackauckas, I remember you being pretty upset with the previous breaking release of Adapt.jl. This time though, it should only really affect GPUArray.jl/CUDA.jl, so I expect CompatHelper to churn through these pretty quickly. |
There's no downstream tests here 😅. @avik-pal can you run some checks? I do think this will be breaking somewhere, but it's different from the last case which cause a subset of things to be possible. This allows more information and thus I don't think that effect is possible this time around, and we just need to bugfix around. |
I did a search on JuliaHub and there's (no) public uses of these unexported, undocumented functions (well, except for GPUArrays, but that's why I've marked this a breaking release). So I'd be surprised, but it's always possible of course. |
It came from |
That will fail, because AFAICT you're not using the updated GPUArrays/GPUArraysCore/CUDA branches. As long as you didn't explicitly call into |
Oh ok, yeah there were no direct calls to that, it was via |
Instead of returning the raw typename, provide the full type so that callers can use type variables, if required.
Also provide a version that fully unpeels the array wrapper.
And remove
ndims
/eltype
, which are queries that Base supports already.These are breaking changes, but needed for JuliaGPU/CUDA.jl#2191 in order to provide the full parent array's typevars (i.e., the buffer type) to the broadcast implementation.
Also fixes #72