A Vector-Length Agnostic Compiler for the Connex-S Accelerator with Scratchpad Memory

Author:

Şuşu Alexandru E.1ORCID

Affiliation:

1. ETTI department, Politehnica University of Bucharest, Romania

Abstract

Compiling sequential C programs for Connex-S, a competitive, scalable and customizable, wide vector accelerator for intensive embedded applications with 32 to 4,096 16-bit integer lanes and a limited capacity local scratchpad memory, is challenging. Our compiler toolchain uses the LLVM framework and targets OPINCAA, a JIT vector assembler and coordination C++ library for Connex-S accelerating computations for an arbitrary CPU. Therefore, we address in the compiler middle end aspects of efficient vectorization, communication, and synchronization. We perform quantitative static analysis of the program useful, among others, for the symbolic-size compiler memory allocator and the coordination mechanism of OPINCAA. We also discuss the LLVM back end for the Connex-S processor and the methodology to automatically generate instruction selection code for emulating efficiently arithmetic and logical operations for non-native types such as 32-bit integer and 16-bit floating-point. By using JIT vector assembling and by encoding the vector length of Connex-S as a parameter in the generated OPINCAA program, we achieve vector-length agnosticism to support execution on distinct embedded devices, such as several digital cameras with different resolutions, each equipped with custom-width Connex-S accelerators meant to save energy for the image processing kernels. Since Connex-S has a limited capacity local scratchpad memory of 256 KB normally, we present how we also use the PPCG C-to-C code generator to perform data tiling to minimize the total kernel execution time, subject to fitting larger program data in the local memory. We devise an accurate cost model for the Connex-S accelerator to choose optimal performance tile sizes at compile time. We successfully compile several simple benchmarks frequently used, for example, in high-performance and computer vision embedded applications. We report speedup factors of up to 11.33 when running them on a Connex-S accelerator with 128 16-bit integer lanes w.r.t. the dual-core ARM Cortex A9 host clocked at a frequency 6.67 times higher, with a total of two 128-bit Neon SIMD units.

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Software

Reference98 articles.

1. 2020. LLVM Documentation: TableGen. Retrieved from http://llvm.org/docs/TableGen/. 2020. LLVM Documentation: TableGen. Retrieved from http://llvm.org/docs/TableGen/.

2. 2020. The Polyhedral Model. Retrieved from http://polyhedral.info. 2020. The Polyhedral Model. Retrieved from http://polyhedral.info.

3. 2017. Connex-S Accelerator Controller Specification. 2017. Connex-S Accelerator Controller Specification.

4. 2020. The Connex-S OPINCAA LLVM compiler. Retrieved from http://gitlab.dcae.pub.ro/research/ConnexRelated/OpincaaLLVM. 2020. The Connex-S OPINCAA LLVM compiler. Retrieved from http://gitlab.dcae.pub.ro/research/ConnexRelated/OpincaaLLVM.

5. 2020. The Connex OPINCAA library. Retrieved from http://gitlab.dcae.pub.ro/research/opincaa. 2020. The Connex OPINCAA library. Retrieved from http://gitlab.dcae.pub.ro/research/opincaa.

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

1. Mira: A Program-Behavior-Guided Far Memory System;Proceedings of the 29th Symposium on Operating Systems Principles;2023-10-23

2. Compiling for Vector Extensions With Stream-Based Specialization;IEEE Micro;2022-09-01

3. Python-Based Programming Framework for a Heterogeneous MapReduce Architecture;2022 14th International Conference on Communications (COMM);2022-06-16

4. Compilation of Parallel Data Access for Vector Processor in Radio Base Stations;IEEE Embedded Systems Letters;2021

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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