-
Notifications
You must be signed in to change notification settings - Fork 917
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
Handle some zero-sized corner cases in dlpack interop #11449
Handle some zero-sized corner cases in dlpack interop #11449
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## branch-22.10 #11449 +/- ##
===============================================
Coverage ? 86.41%
===============================================
Files ? 145
Lines ? 22991
Branches ? 0
===============================================
Hits ? 19868
Misses ? 3123
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This is the cudf part of the changes necessary to allow using cupy 11 and later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the informative author comments throughout. It helped my review a lot to have a second level of description to validate my understanding of what the changes were doing. I have one minor suggestion for improving a comment.
I've pushed a change to the conda environment to check if running with cupy 11 actually works. I've converted to draft so this is not accidentally merged (because it might be necessary to synchronise other cupy-11-related fixes elsewhere) |
I think everything is now good. Should we drop all the conda environment changes and do those separately? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ready to go, just need to revert the temporary changes.
@wence- After the temporary commits are reverted and this integration PR(rapidsai/integration#528) is merged we will have to wait a couple of hours for the new env/images to be shipped so that CI can pass. |
Co-authored-by: GALI PREM SAGAR <[email protected]>
We use doctest.ELLIPSIS in the doctest runner option flags, so foo...bar will match any string that starts with foo and ends with bar.
Note, |
@wence- You can use cudf/python/cudf/cudf/core/_compat.py Lines 4 to 6 in e099e01
|
Merged trunk to hopefully fix build errors |
Argh, shouldn't have merged |
5a61e46
to
e24dc97
Compare
@galipremsagar sorry, we both fixed the same thing and I pushed over the top of you |
@gpucibot merge |
Description
Previously, we did not explicitly check for zero-sized inputs in to/from_dlpack.
cupy>=11 changes behaviour in how it provides information for zero-sized arrays
(strides of empty tensors were previously reported as one, but now are zero).
This broke some of the validity checking in
from_dlpack
. To handle such cases,check the shape of the incoming tensor as well as strides.
Checklist