# Understanding GPU Megakernels: Why Residency Can Mislead

DevFeed: [Understanding GPU Megakernels: Why Residency Can Mislead](<https://devfeed.tech/articles/understanding-gpu-megakernels-why-residency-can-mislead-113776.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00495>)

Author: Xinwei Qiang, Ziyi Xu, Chang Chen, Zaifeng Pan, Zhongkai Yu, Yue Guan, Yufei Ding

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cta](<https://devfeed.tech/tags/cta.md>), [decode](<https://devfeed.tech/tags/decode.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [execution](<https://devfeed.tech/tags/execution.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [kernels](<https://devfeed.tech/tags/kernels.md>), [latency](<https://devfeed.tech/tags/latency.md>), [launch](<https://devfeed.tech/tags/launch.md>), [llm](<https://devfeed.tech/tags/llm.md>), [loading](<https://devfeed.tech/tags/loading.md>), [megakernels](<https://devfeed.tech/tags/megakernels.md>), [memory](<https://devfeed.tech/tags/memory.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [performance](<https://devfeed.tech/tags/performance.md>), [resource](<https://devfeed.tech/tags/resource.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [startup](<https://devfeed.tech/tags/startup.md>), [thunderkittens](<https://devfeed.tech/tags/thunderkittens.md>)

## AI overview

On an H100, separate-kernel reconstructions of ThunderKittens (TK) and VDCores show that CTA residency alone can mislead estimates of useful overlap. Overlapping startup and operand loading through programmatic dependent launch (PDL) cut TK decode-step latency by 5.7% and gave VDCores comparable performance when both executions enforced required memory ordering. With whole-operator dependencies, TK retained a prefetch advantage, but runtime and completion-signal ordering costs outweighed it. Resource availability limits both startup overlap and prefetch: persistent CTAs can reuse storage before retiring, while separate successors must secure their full CTA footprints before initializing or loading operands. Joint execution also needs ready work and spare capacity in the bottleneck resource; reserving SMs for communication can add GEMM waves, and extra work on idle SMs offers little benefit after memory bandwidth saturates. The findings motivate finer resource sharing and earlier cross-kernel resource reuse.

## Source excerpt

arXiv:2611.00495v1 Announce Type: new Abstract: Megakernels let one persistent GPU program prepare dependent operators early and execute ready tasks together. We study the benefits and costs of these capabilities by reconstructing two LLM megakernels, ThunderKittens (TK) and VDCores, as separate kernels on H100 using their original operator code. Our results show that CTA residency can misrepresent opportunities for useful overlap in both directions. By overlapping startup and operand loading with programmatic dependent launch (PDL), the reconstructions reduce decode-step latency by 5.7% in TK and achieve comparable performance in VDCores when both executions enforce the required memory ordering. Under whole-operator dependencies, TK's persistent execution still gains more from prefetch, but runtime and completion-signal ordering costs outweigh this advantage. Both startup overlap and prefetch depend on resource availability. Persistent CTAs can reuse storage before retiring, whereas separate successors must acquire their full CTA footprints before initializing or loading operands. This admission constraint in both reconstructions motivates finer resource sharing across kernels. Beyond early preparation, joint execution requires ready work and spare capacity in the bottleneck resource. Reserving SMs for communication can add GEMM waves that erase overlap gains, while filling idle SMs offers little benefit once memory bandwidth is saturated. These findings clarify benefits and costs of megakernels and motivate GPU support for earlier resource reuse across kernels.