Uh oh!
There was an error while loading. Please reload this page.
Fix #1336: Correct CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL type - #1451
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. |
mdboom
commented
Jan 9, 2026
/ok to test |
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
rparolin
commented
Jan 9, 2026
@greptileai, please review |
Uh oh!
There was an error while loading. Please reload this page.
|
Successfully created backport PR for |
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