计算机科学 > 操作系统
[提交于 2026年11月11日]
标题:KernelArmor: End-to-End Agentic System for Establishing Memory and Thread Safety for CUDA
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Optimized CUDA kernels can pass testing while retaining subtle memory and concurrency bugs. We present KernelArmor, an agentic framework that combines LLM-generated annotations with an extended SMT verifier to establish memory and thread safety under explicit contracts. KernelArmor can reason about kernels with advanced CUDA features, such as tensor cores, packed accesses, warp synchronization, asynchronous copies, and library calls, returning source-level diagnostics to guide verification and repair. Across 740 instances containing 1,370 production-grade CUDA kernels, it reports potential bugs in 78.6% of instances and establishes safety for 11.4%, outperforming the evaluated state-of-the-art tools in detection coverage, identifying 100% of cuCatch memory-safety bugs and all in-scope cuHadron races. Integrated into an agentic optimization loop, KernelArmor produces verified kernels in all 77 trajectories while retaining 99% of the unconstrained geometric-mean speedup.
提交历史
来自:Bodhisatwa Chatterjee[v1] 2026年11月11日 星期三 17:42:57 UTC (1,062 KB)