DaPPA:面向处理近内存架构的数据并行编程框架
DaPPA: A Unified Data-Parallel Programming Framework for Efficient Processing-in-Memory Execution
AI总结:
DaPPA是一个面向UPMEM处理近内存架构的数据并行编程框架,通过自动管理数据移动和负载分配,平均提升性能2.1倍,减少94%代码量。
摘要:
现代应用中不断增长的数据量导致传统以处理器为中心的系统产生显著的计算成本。处理近内存(PIM)架构通过将计算移至更靠近内存的位置来降低这些成本,从而减少数据移动开销。UPMEM是首个商用的PIM系统,其特点是在DRAM模块内集成了数千个顺序处理器(DPU)。然而,由于需要在DPU之间进行显式的数据管理和工作负载划分,基于UPMEM的系统编程仍然具有挑战性。我们提出了DaPPA(数据并行处理近内存架构),这是一个编程框架,通过自动管理数据移动、内存分配和工作负载分布来简化UPMEM系统的可编程性。DaPPA背后的关键思想是利用高级数据并行模式化编程接口,将硬件复杂性对程序员抽象化。DaPPA包含三个主要组件:(i)数据并行模式API,一组五种主要的数据并行模式原语,允许程序员表达应用程序内的数据转换;(ii)数据流编程接口,允许程序员定义数据如何在数据并行模式之间移动;(iii)基于动态模板的编译,利用代码骨架和动态代码转换,将通过数据流编程接口实现的数据并行模式转换为优化的UPMEM二进制文件。我们使用PrIM基准测试套件中的六个工作负载在真实的UPMEM系统上评估DaPPA。与手动调优的实现相比,DaPPA平均将端到端性能提高了2.1倍,并将编程复杂性(以代码行数衡量)降低了94%。我们的结果表明,DaPPA是在UPMEM系统上进行高效且用户友好编程的有效编程框架。
英文摘要:
Processing-in-memory (PIM) alleviates data-movement bottlenecks by placing computation near or inside memory. Two general-purpose PIM paradigms are now practical: processing-near-memory (PNM) and processing-using-memory (PUM). Although both target regular, data-intensive, data-parallel workloads, they remain difficult to program because data organization is tightly coupled to computation and differs across substrates. Thus, programmers must manually manage substrate-specific data partitioning, movement, layout, and tiling, preventing program portability across PIM systems. We propose DaPPA (data-parallel processing-in-memory architecture), a programming framework that exposes a single high-level data-parallel pattern interface and retargets it to multiple PIM substrates. The key idea of DaPPA is to decouple the expression of data parallelism from substrate-specific data organization: programmers express computation once using data-parallel patterns and a dataflow interface, while specialized backends automatically generate data orchestration for PNM and multi-level tiling for PUM. We evaluate DaPPA on representative substrates from both PIM paradigms. On the UPMEM PNM system, DaPPA outperforms hand-tuned implementations by 1.6x on average with 95% fewer lines-of-code, and outperforms the state-of-the-art SimplePIM framework by 1.4x on average with 62% fewer lines-of-code. On a SIMDRAM-like PUM substrate, DaPPA outperforms the state-of-the-art MIMDRAM compiler by 2.0x on average (up to 6.4x) across 12 workloads. DaPPA can deploy all ten of our PNM workloads, whereas CINM, the closest framework targeting both paradigms, can deploy only three, on which DaPPA is 2.7--6.8x faster. We open-source DaPPA at https://github.com/CMU-SAFARI/DaPPA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。