Skip to content

nvbug 6602863: system_event_set_wait fails on events: resize() on non-owning SystemEventData_v1._data view - #2690

Merged
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:cant-resize
Aug 24, 2026
Merged

nvbug 6602863: system_event_set_wait fails on events: resize() on non-owning SystemEventData_v1._data view#2690
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:cant-resize

Conversation

@mdboom

@mdboom mdboom commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

A non-owned Numpy array can not be resized, so we have to replace it with a view instead when we truncate it. (No copy needs to be performed).

Though this comes from the generator, it is actually in hand-written code.

See the nvbug for further details.

This is stubbornly difficult to write a unit test for. The only system events we can use to test with are BIND/UNBIND. We could unbind and bind a GPU in another process to generate these events, but that requires sudo and an extra idle GPU lying around (which it certainly isn't in the middle of running the tests). I have tested this locally and SWQA can repeat for us again. This is just a lesson to move away from hand-written wrapper code so that we can test it (it's easy to test generated code against "mock" API calls -- much harder with our hand-written code at the moment).

@mdboom mdboom added this to the cuda.bindings 13.4.0 & 12.9.8 milestone Aug 24, 2026
@mdboom mdboom self-assigned this Aug 24, 2026
@mdboom mdboom added bug Something isn't working P0 High priority - Must do! cuda.bindings Everything related to the cuda.bindings module labels Aug 24, 2026
@github-actions

This comment has been minimized.

@mdboom
mdboom merged commit 61710aa into NVIDIA:main Aug 24, 2026
221 of 223 checks passed
@github-actions

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants