Expression templates and OpenCL

  • Authors:
  • Uwe Bawidamann;Marco Nehmeier

  • Affiliations:
  • Institute of Computer Science, University of Würzburg Am Hubland, Würzburg, Germany;Institute of Computer Science, University of Würzburg Am Hubland, Würzburg, Germany

  • Venue:
  • PPAM'11 Proceedings of the 9th international conference on Parallel Processing and Applied Mathematics - Volume Part II
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper we discuss the interaction of expression templates with OpenCL devices. We show how the expression tree of expression templates can be used to generate problem specific OpenCL kernels. In a second approach we use expression templates to optimize the data transfer between the host and the device which leads to a measurable performance increase in a domain specific language approach. We tested the functionality, correctness and performance for both implementations in a case study for vector and matrix operations.