ATiM:面向DRAM内处理的张量程序自动调优
ATiM: Autotuning Tensor Programs for Processing-in-DRAM
AI总结:
本文提出ATiM,首个面向UPMEM DRAM-PIM系统的基于搜索的优化张量编译器,通过联合搜索空间、PIM感知优化和改进搜索算法实现全自动代码生成,在基准内核和GPT-J层上分别取得最高6.18倍和8.21倍的性能提升。
摘要:
DRAM内处理(DRAM-PIM)已成为加速现代应用(如大型语言模型,LLMs)中内存密集型操作的一项极具前景的技术。尽管具有潜力,但当前的DRAM-PIM软件栈面临重大挑战,包括依赖手动调优的库从而阻碍了可编程性、对高级抽象的支持有限,以及缺乏系统性的优化框架。为了解决这些局限性,我们提出了ATiM,一个基于搜索的面向UPMEM的优化张量编译器。ATiM的关键特性包括:(1)对主机和内核张量程序的联合搜索空间进行自动搜索,(2)具备PIM感知的优化,以高效处理边界条件,以及(3)针对UPMEM系统扩展的搜索空间改进了搜索算法。我们在UPMEM硬件上的实验结果表明,对于各种UPMEM基准内核,性能提升最高达6.18倍,对于GPT-J层,性能提升最高达8.21倍。据我们所知,ATiM是首个为DRAM-PIM系统提供完全自动化、集成自动调优的代码生成支持的张量编译器。通过弥合高级张量计算抽象与底层特定硬件需求之间的差距,ATiM为推进DRAM-PIM的可编程性和实现流线型优化奠定了基础。
英文摘要:
Processing-in-DRAM (DRAM-PIM) has emerged as a promising technology for accelerating memory-intensive operations in modern applications, such as Large Language Models (LLMs). Despite its potential, current software stacks for DRAM-PIM face significant challenges, including reliance on hand-tuned libraries that hinder programmability, limited support for high-level abstractions, and the lack of systematic optimization frameworks. To address these limitations, we present ATiM, a search-based optimizing tensor compiler for UPMEM. Key features of ATiM include: (1) automated searches of the joint search space for host and kernel tensor programs, (2) PIM-aware optimizations for efficiently handling boundary conditions, and (3) improved search algorithms for the expanded search space of UPMEM systems. Our experimental results on UPMEM hardware demonstrate performance gains of up to 6.18$\times$ for various UPMEM benchmark kernels and 8.21$\times$ for GPT-J layers. To the best of our knowledge, ATiM is the first tensor compiler to provide fully automated, autotuning-integrated code generation support for a DRAM-PIM system. By bridging the gap between high-level tensor computation abstractions and low-level hardware-specific requirements, ATiM establishes a foundation for advancing DRAM-PIM programmability and enabling streamlined optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。