You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable IPC events and update tests to test stream-ordered IPC #1040
We probably don't have time to cover it in cuda.core 0.4.0, but we need to at least confirm that a future inclusion does not break the new IPC APIs. If so, this is a blocking issue that must be resolved before code freeze.
we agreed the above understanding is correct and there is no breaking change needed
we will change the event option from support_ipc to ipc_enabled to ensure consistent UX when we work on this task, while it might seem like a breaking change, it is not because it has never worked so far:
changed the title [-]Ensure IPC events naturally fit in our current design[/-][+]Enable IPC events and update tests to test stream-ordered IPC[/+]on Oct 4, 2025
It has come to my attention (#1209 (comment)) that our IPC tests still have room for (performance) improvement. For example, buffer comparison can be run asynchronously and on device, instead of synchronously and on host. I'll work on this.
This was implemented in #1176 (originally #1145). IPC events are supported via EventOptions(ipc_enabled=True), with Event.get_ipc_descriptor() / Event.from_ipc_descriptor() for cross-process sharing, and stream-ordered IPC is tested in tests/memory_ipc/test_event_ipc.py.
Activity
cuda.core#103leofang commentedon Oct 3, 2025
@Andy-Jost should prove me wrong, but I believe we already kept a door for this.
Eventwith thesupport_ipcflag setEvent.to_ipc_descriptor()to have something that can be serialized and sent over to childEvent.from_ipc_descriptor()constructor to reconstruct anEventobjectThe to/from methods are named in line with what we have for
Bufferthat's being modified in #1020.Andy, please confirm if my understanding is correct, and then I'll move this task to the next milestone/release.
leofang commentedon Oct 4, 2025
Discussed with Andy offline:
support_ipctoipc_enabledto ensure consistent UX when we work on this task, while it might seem like a breaking change, it is not because it has never worked so far:cuda-python/cuda_core/cuda/core/experimental/_event.pyx
Lines 110 to 111 in b09d7ed
Pushing this to the next cycle.
[-]Ensure IPC events naturally fit in our current design[/-][+]Enable IPC events and update tests to test stream-ordered IPC[/+]leofang commentedon Nov 3, 2025
It has come to my attention (#1209 (comment)) that our IPC tests still have room for (performance) improvement. For example, buffer comparison can be run asynchronously and on device, instead of synchronously and on host. I'll work on this.
Andy-Jost commentedon Feb 12, 2026
This was implemented in #1176 (originally #1145). IPC events are supported via
EventOptions(ipc_enabled=True), withEvent.get_ipc_descriptor()/Event.from_ipc_descriptor()for cross-process sharing, and stream-ordered IPC is tested intests/memory_ipc/test_event_ipc.py.