Sierra: a SIMD extension for C++

Sierra: a SIMD extension for C++
复制标题

Sierra:C 语言的 SIMD 扩展

DOI:
10.1145/2568058.2568062
复制
发表时间:
2014
影响因子:
1.5
通讯作者:
Sebastian Hack
Sebastian Hack
中科院分区:
计算机科学4区
文献类型:
--
作者:
Roland Leißa;Immanuel Haffner;Sebastian Hack

文献摘要

被引文献

相似文献

如今,SIMD硬件在计算机中无处不在。尽管如此,许多软件项目几乎不使用SIMD指令:应用程序通常是用通用语言(如C++)编写的。然而,通用语言只为SIMD编程提供了很差的抽象,强制执行一种容易出错的、类似汇编的编程风格。另一种选择是数据并行语言。它们确实为目标SIMD架构提供了更多的便利,但也引入了自己的一系列问题。特别是,程序员通常不愿意将他们的C++代码移植到新的编程语言。 在本文中,我们提出了塞拉利昂:一个SIMD扩展的C++。它结合了C++的全部功能和直观有效的方法来处理SIMD硬件。使用Sierra,程序员可以编写高效,可移植和可维护的代码。增强现有代码以在SIMD机器上高效运行特别容易。 与先前的方法相比,程序员对所涉及的向量长度具有显式控制。
Nowadays, SIMD hardware is omnipresent in computers. Nonetheless, many software projects make hardly use of SIMD instructions: Applications are usually written in general-purpose languages like C++. However, general-purpose languages only provide poor abstractions for SIMD programming enforcing an error-prone, assembly-like programming style. An alternative are data-parallel languages. They indeed offer more convenience to target SIMD architectures but introduce their own set of problems. In particular, programmers are often unwilling to port their working C++ code to a new programming language. In this paper we present Sierra: a SIMD extension for C++. It combines the full power of C++ with an intuitive and effective way to address SIMD hardware. With Sierra, the programmer can write efficient, portable and maintainable code. It is particularly easy to enhance existing code to run efficiently on SIMD machines. In contrast to prior approaches, the programmer has explicit control over the involved vector lengths.