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

C4CAM:一种面向基于CAM的存内加速器的编译器

C4CAM: A Compiler for CAM-based In-memory Accelerators

Hamid Farzaneh, João Paulo Cardoso de Lima, Mengyuan Li, Asif Ali Khan, Xiaobo Sharon Hu, Jeronimo Castrillon

AI总结:

本文提出首个面向基于CAM的存内加速器的编译器框架C4CAM,支持从高级TorchScript代码生成代码并快速探索CAM配置,通过层次化抽象进行代码转换,并分析不同CAM阵列对系统性能和能耗的影响以辅助设计选择。

摘要:

机器学习和数据分析应用日益受到传统冯·诺依曼架构高延迟和高能耗的困扰。近期,人们提出了多种存内和近存系统以消除这一冯·诺依曼瓶颈。基于内容寻址存储器(CAM)的平台因能高效支持作为众多应用基础的搜索操作而备受关注,这些应用包括K近邻(KNN)、高维计算(HDC)、推荐系统及单样本学习等。目前,这些平台均由手工设计,且只能使用低级代码进行编程,仅硬件专家能够掌握。本文提出了C4CAM,这是首个能够快速探索CAM配置并无缝从高级TorchScript代码生成代码的编译器框架。C4CAM采用层次化抽象逐步降低程序,允许在最合适的抽象层级进行代码转换。根据类型和技术的不同,CAM阵列表现出不同的延迟和功耗特征。该框架允许分析此类差异对系统级性能和能耗的影响,从而支持设计者为特定应用选择合适的设计方案。

英文摘要:

Machine learning and data analytics applications increasingly suffer from the high latency and energy consumption of conventional von Neumann architectures. Recently, several in-memory and near-memory systems have been proposed to remove this von Neumann bottleneck. Platforms based on content-addressable memories (CAMs) are particularly interesting due to their efficient support for the search-based operations that form the foundation for many applications, including K-nearest neighbors (KNN), high-dimensional computing (HDC), recommender systems, and one-shot learning among others. Today, these platforms are designed by hand and can only be programmed with low-level code, accessible only to hardware experts. In this paper, we introduce C4CAM, the first compiler framework to quickly explore CAM configurations and to seamlessly generate code from high-level TorchScript code. C4CAM employs a hierarchy of abstractions that progressively lowers programs, allowing code transformations at the most suitable abstraction level. Depending on the type and technology, CAM arrays exhibit varying latencies and power profiles. Our framework allows analyzing the impact of such differences in terms of system-level performance and energy consumption, and thus supports designers in selecting appropriate designs for a given application.

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

↑