Chiosa
Systems & Infrastructure

GPU kernels can hand network control to CPU callbacks

A Fast, Programmable GPU-to-CPU Invocation Layer for GPU-Initiated Communication · arXiv:2611.23848

3 min
Updated

In plain words

GPU threads can start network communication, but they also have to do a chain of network-card control steps. KIWI is a framework that lets GPU waves send requests to CPU threads, which run application-defined callbacks to handle that work.

On one MI300X GPU, KIWI's queue push stayed at 0.12 microseconds as producers grew from 1 to 1,024 waves. In tested communication workloads, KIWI also reduced latency in several comparisons, though the advantage depended on the workload and settings.

The research

GPU-initiated communication makes GPU threads handle network-control steps and share limited connection endpoints.

Moving that control to CPU callbacks could change how communication operations are built and where their work runs; KIWI's tests show lower latency in several specific workloads, while also showing that gains depend on workload size and design choices.

KIWI lets GPU kernels publish requests for application-defined CPU callbacks, moving network control off GPU threads while keeping communication GPU-initiated.

In a common queue test on one MI300X, KIWI's push cost stayed at 0.12 microseconds as producers grew from 1 to 1,024 waves, while existing queues' costs rose 4.6 to 16 times.

In communication tests, KIWI-P2P lowered small-put latency, and KIWI-EP led across specified portions of the expert-parallel node and token-count range.

A vLLM serving test also found lower time per output token with KIWI-EP decode than with MORI-EP decode. Together, these results support reverse offload for the tested communication and serving workloads.

The performance results come from an AMD MI300X cluster with a RoCE network, and the expert-parallel comparison covers the tested routing and workloads. KIWI-EP uses four CPU cores per GPU for proxy threads; the authors did not observe preemption hurting performance in their experiments.

What the evidence shows

  • Move network control to CPUs

    KIWI (Kernel-Initiated, Workload-Defined Invocations) is a programmable reverse-offload framework: GPU waves publish requests, and application-owned CPU threads run registered callbacks. The idea addresses a mismatch in GPU-initiated communication.

    GPU threads must perform sequential network-card control steps and coordinate access to fewer communication endpoints, while CPU cores can handle serial control work. The contribution is both a handoff mechanism and an interface for applications to define the operations they need.

  • The handoff scales in its test

    The handoff's push cost stayed flat as producer waves increased, while other queues became more expensive. This supports KIWI's queue design under rising producer concurrency in that single-GPU test.

  • Small transfers favor KIWI-P2P

    A two-rank ping-pong test measured the time for one workgroup on each rank to exchange small puts. KIWI-P2P took 5.64 microseconds per put, with lower latency than the tested GPUDirect Async (GDA) paths in MORI and rocSHMEM.

    The control path helps explain the result: the GPU publishes a request while a CPU proxy builds and posts it, instead of making GPU threads perform those steps. The advantage narrowed as transfer time dominated larger messages.

  • Workload size changes the result

    KIWI-EP's advantage depended on node count and token count: it led across more of the tested range as node count increased. In the eight-node design comparison, generic proxy setups could lose to GDA at larger batches, while workload-specific callbacks and skewed mapping improved those comparisons. This shows that both workload size and design choices shape the result.

  • A serving test also improves

    The evaluation also tested serving GLM-5.3 in vLLM, with MORI-EP handling prefill and either MORI-EP or KIWI-EP handling decode. KIWI-EP lowered measured time per output token at every tested scale and concurrency, with a maximum reduction of 29% on eight nodes.

    This extends the evidence from communication kernels to one serving setup, while the paper notes that its serving gains do not map directly to kernel-level gains.

Deep

Next paperA PyTorch backend lets Mac GPUs train together over Ethernet