Thumbnail Image

An evaluation of current SIMD programming models for C++

Pohl, Angela; Cosenza, Biagio; Álvarez-Mesa, Mauricio; Chi, Chi Ching; Juurlink, Ben

SIMD extensions were added to microprocessors in the mid '90s to speed-up data-parallel code by vectorization. Unfortunately, the SIMD programming model has barely evolved and the most efficient utilization is still obtained with elaborate intrinsics coding. As a consequence, several approaches to write efficient and portable SIMD code have been proposed. In this work, we evaluate current programming models for the C++ language, which claim to simplify SIMD programming while maintaining high performance. The proposals were assessed by implementing two kernels: one standard floating-point benchmark and one real-world integer-based application, both highly data parallel. Results show that the proposed solutions perform well for the floating point kernel, achieving close to the maximum possible speed-up. For the real-world application, the programming models exhibit significant performance gaps due to data type issues, missing template support and other problems discussed in this paper.
Published in: Proceedings of the 3rd Workshop on Programming Models for SIMD/Vector Processing (WPMVP ’16), 10.1145/2870650.2870653, Association for Computing Machinery (ACM)