Automatic OpenCL Device Characterization: Guiding Optimized Kernel Design

  • Peter Thoman
  • Klaus Kofler
  • Heiko Studt
  • John Thomson
  • Thomas Fahringer
Conference paper

DOI: 10.1007/978-3-642-23397-5_43

Part of the Lecture Notes in Computer Science book series (LNCS, volume 6853)
Cite this paper as:
Thoman P., Kofler K., Studt H., Thomson J., Fahringer T. (2011) Automatic OpenCL Device Characterization: Guiding Optimized Kernel Design. In: Jeannot E., Namyst R., Roman J. (eds) Euro-Par 2011 Parallel Processing. Euro-Par 2011. Lecture Notes in Computer Science, vol 6853. Springer, Berlin, Heidelberg

Abstract

The OpenCL standard allows targeting a large variety of CPU, GPU and accelerator architectures using a single unified programming interface and language. While the standard guarantees portability of functionality for complying applications and platforms, performance portability on such a diverse set of hardware is limited. Devices may vary significantly in memory architecture as well as type, number and complexity of computational units. To characterize and compare the OpenCL performance of existing and future devices we propose a suite of microbenchmarks, uCLbench.

We present measurements for eight hardware architectures – four GPUs, three CPUs and one accelerator – and illustrate how the results accurately reflect unique characteristics of the respective platform. In addition to measuring quantities traditionally benchmarked on CPUs like arithmetic throughput or the bandwidth and latency of various address spaces, the suite also includes code designed to determine parameters unique to OpenCL like the dynamic branching penalties prevalent on GPUs. We demonstrate how our results can be used to guide algorithm design and optimization for any given platform on an example kernel that represents the key computation of a linear multigrid solver. Guided manual optimization of this kernel results in an average improvement of 61% across the eight platforms tested.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Peter Thoman
    • 1
  • Klaus Kofler
    • 1
  • Heiko Studt
    • 1
  • John Thomson
    • 1
  • Thomas Fahringer
    • 1
  1. 1.University of Innsbruck

Personalised recommendations