Why LLMs Struggle With Multi-GPU Kernels

AI Engineer30:00
0 comments · 0 votesOpen discussion
Sign in to join the discussion

    Video summary

    Simran Arora explains why multi-GPU communicationMulti-graphics processing unit computing uses more than one graphics processing unit together to run a model or divide AI workloads. has become a central performance bottleneckA graphics processing unit communication bottleneck occurs when moving or synchronizing data between processors takes longer than the useful computation it supports. as AI workloads scale. GPU memory, NVLink, PCIe and cluster networking create a hierarchy of transfer costs that efficient kernelsA graphics processing unit kernel is a function compiled to run many parallel operations on a graphics processor or related accelerator. must coordinate rather than treating communication as a single interchangeable operation.

    Simran Arora presents ParallelKernelBench, a suite of 87 realistic multi-GPU problems. The strongest tested frontier model solved 28 problems without iterative feedback, with 22 solutions outperforming a PyTorch and NCCL baseline. More samples raised correctness, but speed improvements plateaued, showing that search alone does not resolve the deeper optimization problem.

    The models often reuse familiar patterns found in existing code, yet struggle with collective ordering, data partitioning, inter-SM and intra-SM scheduling, and choosing the right transfer mechanism. A multi-turn agent improves results by compiling, testing and revising kernelsIterative AI code generation repeatedly creates, runs, evaluates, and revises code instead of treating the first output as final., but it also plateaus, suggesting that better hardware-aware reasoningHardware-aware code optimization adapts algorithms, memory access, scheduling, and communication to the real characteristics of the target processor and system. is still needed.

    Original YouTube thumbnailWatch on YouTube