-
Notifications
You must be signed in to change notification settings - Fork 236
Fix #1336: Correct CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL type #1451
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
base: main
Are you sure you want to change the base?
Conversation
|
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test |
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.
Pull request overview
This pull request attempts to fix a type mismatch for the CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL attribute, which should be retrieved as a signed int rather than an unsigned int according to the CUDA documentation.
- Changed the storage type from
unsigned inttointforCU_POINTER_ATTRIBUTE_DEVICE_ORDINAL - Added test coverage for the device ordinal attribute
- Updated release notes
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| cuda_bindings/cuda/bindings/_lib/utils.pxd.in | Added _int field to _HelperCUpointer_attribute class |
| cuda_bindings/cuda/bindings/_lib/utils.pxi.in | Updated __cinit__ to store device ordinal in _int instead of _uint (incomplete - pyObj not updated) |
| cuda_bindings/tests/test_cuda.py | Added test for device ordinal attribute retrieval |
| cuda_bindings/docs/source/release/13.1.X-notes.rst | Documented the bugfix in release notes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
@greptileai, please review |
Description
The docs for
CU_POINTER_ATTRIBUTE_DEVICE_ORDINALsay:This attribute type was erroneously being converted to an unsigned int. This simply fixes that and adds a test.
Checklist