FlexVec: auto-vectorization for irregular loops

Author:

Baghsorkhi Sara S.1,Vasudevan Nalini2,Wu Youfeng1

Affiliation:

1. Intel, USA

2. Google, USA

Abstract

Traditional vectorization techniques build a dependence graph with distance and direction information to determine whether a loop is vectorizable. Since vectorization reorders the execution of instructions across iterations, in general instructions involved in a strongly connected component (SCC) are deemed not vectorizable unless the SCC can be eliminated using techniques such as scalar expansion or privatization. Therefore, traditional vectorization techniques are limited in their ability to efficiently handle loops with dynamic cross-iteration dependencies or complex control flow interweaved within the dependence cycles. When potential dependencies do not occur very often, the end-result is under utilization of the SIMD hardware. In this paper, we propose FlexVec architecture that combines new vector instructions with novel code generation techniques to dynamically adjusts vector length for loop statements affected by cross-iteration dependencies that happen at runtime. We have designed and implemented FlexVec's new ISA as extensions to the recently released AVX-512 ISA. We have evaluated the performance improvements enabled by FlexVec vectorization for 11 C/C++ SPEC 2006 benchmarks and 7 real applications with AVX-512 vectorization as baseline. We show that FlexVec vectorization technique produces a Geomean speedup of 9% for SPEC 2006 and a Geomean speedup of 11% for 7 real applications.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference35 articles.

1. Intel architecture instruction set extensions programming reference. August 2015. URL https://software.intel.com/sites/ default/files/managed/07/b7/319433-023.pdf. Intel architecture instruction set extensions programming reference. August 2015. URL https://software.intel.com/sites/ default/files/managed/07/b7/319433-023.pdf.

2. GROMACS molecular simulation toolkit. URL http://www. gromacs.org/. GROMACS molecular simulation toolkit. URL http://www. gromacs.org/.

3. The GZIP benchmark. URL http://www.gzip.org/. The GZIP benchmark. URL http://www.gzip.org/.

4. Transactional synchronization in Haswell. URL https: //software.intel.com/en-us/blogs/2012/02/07/ transactional-synchronization-in-haswell/. Transactional synchronization in Haswell. URL https: //software.intel.com/en-us/blogs/2012/02/07/ transactional-synchronization-in-haswell/.

5. Intel C++ compilers. URL https://software.intel.com/ en-us/c-compilers. Intel C++ compilers. URL https://software.intel.com/ en-us/c-compilers.

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

1. Research on vectorized engineering file management model;Applied Mathematics and Nonlinear Sciences;2023-06-30

2. Fast Instruction Selection for Fast Digital Signal Processing;Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 4;2023-03-25

3. Combining Run-Time Checks and Compile-Time Analysis to Improve Control Flow Auto-Vectorization;Proceedings of the International Conference on Parallel Architectures and Compilation Techniques;2022-10-08

4. All you need is superword-level parallelism: systematic control-flow vectorization with SLP;Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation;2022-06-09

5. Loner: utilizing the CPU vector datapath to process scalar integer data;Proceedings of the 31st ACM SIGPLAN International Conference on Compiler Construction;2022-03-18

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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