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

PyPIM:从微架构设计到 Python 张量的数字存内计算集成

PyPIM: Integrating Digital Processing-in-Memory from Microarchitectural Design to Python Tensors

Orian Leitersdorf, Ronny Ronen, Shahar Kvatinsky

AI总结:

本文提出 PyPIM,通过微架构与 ISA 设计、Python 开发库和 PIM 驱动程序,实现数字忆阻器存内计算从 Python 张量运算到微操作的端到端集成,显著简化 PIM 应用开发。

摘要:

数字存内计算(PIM)架构通过在存储器内部直接支持并行按位运算来缓解内存墙问题。近期工作已经展示了其在加速数据密集型应用方面的算法潜力;然而,在编程模型和微架构设计之间仍存在显著差距。忆阻器 PIM 所特有的特性进一步加剧了这一差距,例如存储器阵列两个方向上的分区和运算。为弥合这一差距,本文提供了数字忆阻器 PIM 的端到端架构集成,从用于张量运算的高级 Python 库(类似于 NumPy 和 PyTorch)一直延伸到低层微架构设计。我们首先提出一种高效的微架构和指令集架构(ISA),在低层控制外围设备与 PIM 并行性抽象之间架起桥梁。随后,我们提出一个 PIM 开发库,将高级 Python 转换为 ISA 指令,以及一个 PIM 驱动程序,将 ISA 指令翻译为 PIM 微操作。我们通过周期精确模拟器在多种基准测试上评估 PyPIM,既展示了 Python 库的多功能性,也展示了与理论 PIM 界限相比的性能。总体而言,PyPIM 极大地简化了 PIM 应用的开发,并使得现有面向张量的 Python 程序能够轻松转换为 PIM 程序。

英文摘要:

Digital processing-in-memory (PIM) architectures mitigate the memory wall problem by facilitating parallel bitwise operations directly within the memory. Recent works have demonstrated their algorithmic potential for accelerating data-intensive applications; however, there remains a significant gap in the programming model and microarchitectural design. This is further exacerbated by aspects unique to memristive PIM such as partitions and operations across both directions of the memory array. To address this gap, this paper provides an end-to-end architectural integration of digital memristive PIM from a high-level Python library for tensor operations (similar to NumPy and PyTorch) to the low-level microarchitectural design. We begin by proposing an efficient microarchitecture and instruction set architecture (ISA) that bridge the gap between the low-level control periphery and an abstraction of PIM parallelism. We subsequently propose a PIM development library that converts high-level Python to ISA instructions and a PIM driver that translates ISA instructions into PIM micro-operations. We evaluate PyPIM via a cycle-accurate simulator on a wide variety of benchmarks that both demonstrate the versatility of the Python library and the performance compared to theoretical PIM bounds. Overall, PyPIM drastically simplifies the development of PIM applications and enables the conversion of existing tensor-oriented Python programs to PIM with ease.

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

↑