Optimizing Tensor Contractions for Embedded Devices with Racetrack and DRAM Memories
-
Published:2020-11-30
Issue:6
Volume:19
Page:1-26
-
ISSN:1539-9087
-
Container-title:ACM Transactions on Embedded Computing Systems
-
language:en
-
Short-container-title:ACM Trans. Embed. Comput. Syst.
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