[realtime] Adding unified "kernel" support for UDP. - #5337
Open
Renaud-K wants to merge 1 commit into
Open
Conversation
Signed-off-by: Renaud Kauffmann <rkauffmann@nvidia.com>
Renaud-K
requested review from
1tnguyen and
cketcham2333
and removed request for
1tnguyen
August 31, 2026 23:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cudaq_host_unified_loop(HOST +CUDAQ_KERNEL_UNIFIED) had no transport behindit: every provider hardcoded
get_cpu_dataplane = nullptr. This gives UDP aunified data plane and runs the two-process UDP tests under both shapes.
Changes by file
udp_wrapper.h+udp_transceiver.cpp— unified (thread-free) mode:cpu_udp_set_unified,cpu_udp_rx_poll,cpu_udp_tx_publish. No pump threads;the consumer's dispatch thread drives the wire.
rx_pollrecvsMSG_DONTWAITinto the in-order slot and back-pressures on
tx_flags[slot];tx_publishisslot-addressed. Header documents the ring-contract changes:
rx_flagsunused,slot addresses derived.
bridge_interface.h— docs: a provider serves the one shape it wasconfigured for and refuses the other.
udp/bridge_impl.cpp— adds--unified, implementsget_cpu_dataplane.get_transport_context(UNIFIED)returns OK with a NULLlaunch_fn. Shapes areexclusive both ways, so mis-wiring gets
UNSUPPORTED.gpu_roce/bridge_impl.cpp— same rule; previously a consumer that forgot--unifiedcould take thelaunch_fnand race the 3-kernel monitor.cudaq_realtime_test_server.cpp— argv split at--(server options before,bridge options after). Adds support for the legacy
cudaq_dispatcher_set_launch_fnandcudaq_dispatcher_set_unified_launch_fn.Tests — +8 transceiver cases, +6 provider cases, and
test_udp_two_process.cppnow instantiated over{"ring", "unified"}.