Optimizing Tensor Contractions for Embedded Devices with Racetrack and DRAM Memories

Author:

Khan Asif Ali1ORCID,Rink Norman A.1,Hameed Fazal2,Castrillon Jeronimo1

Affiliation:

1. Technische Universität Dresden, Dresden, Germany

2. Institute of Space Technology, Islamabad, Pakistan

Abstract

Tensor contraction is a fundamental operation in many algorithms with a plethora of applications ranging from quantum chemistry over fluid dynamics and image processing to machine learning. The performance of tensor computations critically depends on the efficient utilization of on-chip/off-chip memories. In the context of low-power embedded devices, efficient management of the memory space becomes even more crucial, in order to meet energy constraints. This work aims at investigating strategies for performance- and energy-efficient tensor contractions on embedded systems, using racetrack memory (RTM)-based scratch-pad memory (SPM) and DRAM-based off-chip memory. Compiler optimizations such as the loop access order and data layout transformations paired with architectural optimizations such as prefetching and preshifting are employed to reduce the shifting overhead in RTMs. Optimizations for off-chip memory such as memory access order, data mapping and the choice of a suitable memory access granularity are employed to reduce the contention in the off-chip memory. Experimental results demonstrate that the proposed optimizations improve the SPM performance and energy consumption by 32% and 73%, respectively, compared to an iso-capacity SRAM. The overall DRAM dynamic energy consumption improvements due to memory optimizations amount to 80%.

Funder

Cluster of Excellence ‘Center for Advancing Electronics Dresden’

German Research Council (DFG) through the TraceSymm

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference64 articles.

1. Martín Abadi Ashish Agarwal Paul Barham Eugene Brevdo Zhifeng Chen Craig Citro Greg S. Corrado Andy Davis Jeffrey Dean Matthieu Devin Sanjay Ghemawat Ian Goodfellow Andrew Harp Geoffrey Irving Michael Isard Rafal Jozefowicz Yangqing Jia Lukasz Kaiser Manjunath Kudlur Josh Levenberg Dan Mané Mike Schuster Rajat Monga Sherry Moore Derek Murray Chris Olah Jonathon Shlens Benoit Steiner Ilya Sutskever Kunal Talwar Paul Tucker Vincent Vanhoucke Vijay Vasudevan Fernanda Viégas Oriol Vinyals Pete Warden Martin Wattenberg Martin Wicke Yuan Yu and Xiaoqiang Zheng. 2015. TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. http://download.tensorflow.org/paper/whitepaper2015.pdf. Martín Abadi Ashish Agarwal Paul Barham Eugene Brevdo Zhifeng Chen Craig Citro Greg S. Corrado Andy Davis Jeffrey Dean Matthieu Devin Sanjay Ghemawat Ian Goodfellow Andrew Harp Geoffrey Irving Michael Isard Rafal Jozefowicz Yangqing Jia Lukasz Kaiser Manjunath Kudlur Josh Levenberg Dan Mané Mike Schuster Rajat Monga Sherry Moore Derek Murray Chris Olah Jonathon Shlens Benoit Steiner Ilya Sutskever Kunal Talwar Paul Tucker Vincent Vanhoucke Vijay Vasudevan Fernanda Viégas Oriol Vinyals Pete Warden Martin Wattenberg Martin Wicke Yuan Yu and Xiaoqiang Zheng. 2015. TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems. http://download.tensorflow.org/paper/whitepaper2015.pdf.

2. Synthesis of High-Performance Parallel Programs for a Class of ab Initio Quantum Chemistry Models

3. Theano: A CPU and GPU Math Compiler in Python

Cited by 3 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. ERMES: Efficient Racetrack Memory Emulation System based on FPGA;2022 32nd International Conference on Field-Programmable Logic and Applications (FPL);2022-08

2. Energy-Efficient Instruction Delivery in Embedded Systems with Domain Wall Memory;IEEE Transactions on Computers;2021

3. Polyhedral Compilation for Racetrack Memories;IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems;2020-11

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3