Operations and Expression Templates

Author(s):  
Li Wei
Keyword(s):  
2012 ◽  
Vol 10 (4) ◽  
Author(s):  
J Progsch ◽  
Y Ineichen ◽  
A Adelmann

Vector operations play an important role in high performance computing and are typically provided by highly optimized libraries that implement the Basic Linear Algebra Subprograms (BLAS) interface. In C++ templates and operator overloading allow the implementation of these vector operations as expression templates which construct custom loops at compile time and providing a more abstract interface. Unfortunately existing expression template libraries lack the performance of fast BLAS implementations. This paper presents a new approach - Statically Accelerated Loop Templates (SALT) - to close this performance gap by combining expression templates with an aggressive loop unrolling technique. Benchmarks were conducted using the Intel C++ compiler and GNU Compiler Collection to assess the performance of our library relative to Intel's Math Kernel Library as well as the Eigen template library. The results show that the approach is able to provide optimization comparable to the fastest available BLAS implementations, while retaining the convenience and flexibility of a template library.


2012 ◽  
Vol 34 (2) ◽  
pp. C42-C69 ◽  
Author(s):  
Klaus Iglberger ◽  
Georg Hager ◽  
Jan Treibig ◽  
Ulrich Rüde

2017 ◽  
Vol 47 (11) ◽  
pp. 1521-1537
Author(s):  
Bruno Bachelet ◽  
Loïc Yon
Keyword(s):  

Sign in / Sign up

Export Citation Format

Share Document