SimplePIM:面向高效易用的内存内计算的软件框架
SimplePIM: A Software Framework for Productive and Efficient Processing-in-Memory
AI总结:
针对真实PIM硬件编程难度大的问题,提出SimplePIM软件框架,通过迭代器调用和通信原语简化开发,在UPMEM系统上验证可大幅减少代码量并提升或保持应用性能。
摘要:
内存与处理器之间的数据移动是现代计算系统中的主要瓶颈。内存内计算(PIM)范式旨在通过在内存芯片内部执行计算来缓解这一瓶颈。真实的PIM硬件(例如UPMEM系统)现已问世,并已在众多应用中展现出潜力。然而,对许多程序员而言,为此类真实PIM硬件编程仍是一项挑战。\n 本文提出了一种新的软件框架SimplePIM,以辅助真实PIM系统的编程工作。该框架通过从主机端调用迭代器函数,在PIM设备上处理任意元素的数组,并提供了PIM核心之间以及PIM与主机系统之间的通信原语。我们针对UPMEM PIM系统实现了SimplePIM,并在六大主流应用上对其进行了评估。结果表明,SimplePIM可使PIM程序的代码行数减少66.5%至83.1%。在三个应用中,生成的代码性能优于手动优化的代码(加速比在10%到37%之间),在另外三个应用中性能与之相当。SimplePIM可在https://github.com/CMU-SAFARI/SimplePIM 完全免费获取。
英文摘要:
Data movement between memory and processors is a major bottleneck in modern computing systems. The processing-in-memory (PIM) paradigm aims to alleviate this bottleneck by performing computation inside memory chips. Real PIM hardware (e.g., the UPMEM system) is now available and has demonstrated potential in many applications. However, programming such real PIM hardware remains a challenge for many programmers. This paper presents a new software framework, SimplePIM, to aid programming real PIM systems. The framework processes arrays of arbitrary elements on a PIM device by calling iterator functions from the host and provides primitives for communication among PIM cores and between PIM and the host system. We implement SimplePIM for the UPMEM PIM system and evaluate it on six major applications. Our results show that SimplePIM enables 66.5% to 83.1% reduction in lines of code in PIM programs. The resulting code leads to higher performance (between 10% and 37% speedup) than hand-optimized code in three applications and provides comparable performance in three others. SimplePIM is fully and freely available at https://github.com/CMU-SAFARI/SimplePIM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。