arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.27486cs.AR
收藏

CuLifter:将GPU二进制提升到带类型的中间表示

CuLifter: Lifting GPU Binaries to Typed IR

Georgia Institute of Technology(佐治亚理工学院)

Jisheng Zhao, Huanzhi Pu, Shinnung Jeong, Chihyo Ahn, Hyesoon Kim

AI总结:

CuLifter通过约束传播与冲突检测恢复寄存器类型,重建显式控制流并聚合多指令模式,成功将99.98%的GPU函数提升到有效LLVM IR,证明类型恢复是生成语义正确IR的关键步骤。

摘要:

GPU编译器将所有数据类型合并到单一统一的寄存器文件中,消除了二进制分析工具依赖的类型信息。我们证明,从这种无类型寄存器文件中恢复类型是GPU二进制提升的核心挑战。我们提出了CuLifter,一种将SASS转换为LLVM IR的提升框架,通过约束传播与冲突检测恢复寄存器类型,重建显式控制流,并聚合多指令模式。在八个基准测试集(包含24,437个GPU函数的919个cubin文件)中,涵盖开源应用、供应商库和优化的机器学习运行时,CuLifter成功将99.98%的函数提升到有效的LLVM IR。消融研究证实,只有类型恢复这一步骤是生成语义正确IR的必要条件:禁用该步骤会使x86传递率从73.8%降至0%,下降73.8个百分点。

英文摘要:

GPU compilers merge all data types into a single unified register file, erasing the type information that binary-analysis tools rely on. We show that type recovery from this untyped register file is the central challenge of GPU binary lifting. We present CuLifter, a SASS-to-LLVM IR lifting framework that recovers register types via constraint propagation with conflict detection, reconstructs explicit control flow, and aggregates multi-instruction patterns. Across eight benchmark suites spanning open-source applications, vendor libraries, and optimized ML runtimes, CuLifter successfully lifts all 11,977 kernels to valid LLVM IR. Among the testable set, we achieve more than 90% execution correctness, verified via the CPU backend. An ablation study confirms that type recovery is the only step required to produce compilable IR: disabling it causes 86.9% of kernels to execute incorrectly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑