Behind the expanding use of large language models (LLMs) across application domains lies a growing dependence on specialized GPU kernel libraries. These libraries underpin the correctness and efficiency of training and inference across diverse GPU platforms, implementing attention, GEMM, quantization, and low-precision operators while managing tensor shapes, memory layouts, code generation, and hardware-specific dispatch. Problems at this layer can silently corrupt outputs, hang GPUs, prevent compilation, introduce deployment incompatibilities, or degrade performance, thereby reducing developer productivity and wasting expensive GPU resources.
We present the first comprehensive empirical study of issues in GPU kernel libraries for LLM systems. We manually analyzed 300 high-quality GitHub issue reports, their discussions, and available fixes from seven representative libraries: FlashInfer, FlashAttention, Triton, CUTLASS, DeepGEMM, xFormers, and bitsandbytes. The analysis characterizes symptoms, root causes, fixes, and testing and debugging practices. Our main findings are: (1) 60.33% of the sampled issues originate in the Compiler and Build System or Runtime Environment dimensions, so validation must cover the deployment and execution stack, not just kernel code. (2) Kernel specialization imposes implicit correctness constraints on tensor shapes, metadata layouts, memory aliasing, and hardware resources. Violations can produce incorrect outputs or launch failures even for supported operations, highlighting the need for explicit contract validation and boundary-case testing. (3) Current testing and debugging practices are often insufficient for identifying low-precision numerical problems and hardware-specific execution failures. We outline research opportunities and tooling directions to support future LLM GPU kernel development.
RTGPU: Real-Time GPU Scheduling of Hard Deadline Parallel Tasks with Fine-Grain Utilization
IEEE(电气与电子工程师协会);NVIDIA(英伟达)
许多新兴的网络物理系统,如自动驾驶汽车和机器人,严重依赖人工智能和机器学习算法来执行重要的系统操作。由于这些高度并行的应用程序是计算密集型的,它们需要由图形处理单元(GPU)加速以满足严格的时序约束。然而,尽管GPU被广泛采用,但在提供严格的实时的保证的同时有效地调度多个GPU应用仍然是一个挑战。在本文中,我们提出了RTGPU,它可以调度多个GPU应用程序的执行在实时的,以满足硬期限。每个GPU应用程序可以有多个CPU执行和内存复制段,以及GPU内核。我们从一个模型开始,明确说明这些应用程序的CPU和内存复制段。然后,我们考虑GPU架构中的GPU内核的精确定时模型的发展,并利用称为持久线程的技术来实现细粒度的内核调度,通过交错执行提高性能。接下来,我们提出了一种通用的方法,用于实时的调度并行GPU应用程序。最后,调度多个并行GPU应用程序,我们提出了一个实用实时的调度算法的基础上联合调度和网格搜索(GPU内核段)与单处理器固定优先级调度(多CPU和内存复制段)。通过在一个真实的NVIDIA GTX 1080 Ti GPU系统上的全面验证和评估,我们的方法提供了比以前工作更好的可扩展性,并为满足多个GPU应用的硬性期限提供了实时的保证。