Parsimony: Enabling SIMD/Vector Programming in Standard Compiler Flows
Parsimony: Enabling SIMD/Vector Programming in Standard Compiler Flows
复制标题
简约:在标准编译器流程中启用 SIMD/向量编程
DOI:
10.1145/3579990.3580019
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Hardavellas, Nikos
中科院分区:
文献类型:
--
作者:
Kandiah, Vijay;Lustig, Daniel;Villa, Oreste;Nellans, David;Hardavellas, Nikos
Achieving peak throughput on modern CPUs requires maximizing the use of single-instruction, multiple-data (SIMD) or vector compute units. Single-program, multiple-data (SPMD) programming models are an effective way to use high-level programming languages to target these ISAs. Unfortunately, many SPMD frameworks have evolved to have either overly-restrictive language specifications or under-specified programming models, and this has slowed the widescale adoption of SPMD-style programming. This paper introduces Parsimony (PARallel SIMd), a SPMD programming approach built with semantics designed to be compatible with multiple languages and to cleanly integrate into the standard optimizing compiler toolchains for those languages. We first explain the Parsimony programming model semantics and how they enable a standalone compiler IR-to-IR pass that can perform vectorization independently of other passes, improving the language and toolchain compatibility of SPMD programming. We then demonstrate a LLVM prototype of the Parsimony approach that matches the performance of ispc, a popular but more restrictive SPMD approach, and achieves 97% of the performance of hand-written AVX-512 SIMD intrinsics on over 70 benchmarks ported from the Simd Library. We finally discuss where Parsimony has exposed parts of existing language and compiler flows where slight improvements could further enable improved SPMD program vectorization.
登录
查看更多内容
影响因子:
1.5
作者:
Roland Leißa;Immanuel Haffner;Sebastian Hack
通讯作者:
Sebastian Hack
DOI:
10.1145/3445814.3446692
发表时间:
2021-04
期刊:
Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems
影响因子:
--
作者:
Yishen Chen;Charith Mendis;Michael Carbin;Saman P. Amarasinghe
通讯作者:
Yishen Chen;Charith Mendis;Michael Carbin;Saman P. Amarasinghe
DOI:
--
发表时间:
2015
期刊:
Springer Fachmedien Wiesbaden
影响因子:
--
作者:
R. Karrenberg
通讯作者:
R. Karrenberg
DOI:
--
发表时间:
1972
期刊:
SIGP
影响因子:
--
作者:
P. Schneck
通讯作者:
P. Schneck
DOI:
--
发表时间:
2022
期刊:
ACM-SIGPLAN Symposium on Programming Language Design and Implementation
影响因子:
--
作者:
Yishen Chen;Charith Mendis;Saman P. Amarasinghe
通讯作者:
Saman P. Amarasinghe