Tuning and optimization for a variety of many-core architectures without changing a single line of implementation code using the Alpaka library

Alexander Matthes, René Widera, Erik Zenker, Benjamin Worpitz, Axel Huebl +1 more
6/30/2017
49 citations
cs.DC

Official code: alpaka-group/alpaka (437 stars, C++, MPL-2.0, last commit 2026-11-03).

Abstract

We present an analysis on optimizing performance of a single C++11 source code using the Alpaka hardware abstraction library. For this we use the general matrix multiplication (GEMM) algorithm in order to show that compilers can optimize Alpaka code effectively when tuning key parameters of the algorithm.

Show full abstract

We do not intend to rival existing, highly optimized DGEMM versions, but merely choose this example to prove that Alpaka allows for platform-specific tuning with a single source code. In addition we analyze the optimization potential available with vendor-specific compilers when confronted with the heavily templated abstractions of Alpaka. We specifically test the code for bleeding edge architectures such as Nvidia's Tesla P100, Intel's Knights Landing (KNL) and Haswell architecture as well as IBM's Power8 system. On some of these we are able to reach almost 50\% of the peak floating point operation performance using the aforementioned means. When adding compiler-specific #pragmas we are able to reach 5 TFLOPS/s on a P100 and over 1 TFLOPS/s on a KNL system.

View on arXivView PDF

Code Implementations(1)

MPL-2.0

Abstraction Library for Parallel Kernel Acceleration :llama:

43794C++, CMakeNov 5, 20144 weeks agoMPL-2.0
cppcpp17cudagpuheader-only+7 more

Similar Papers

Cite this paper

@article{matthes2017tuning,
  title  = {Tuning and optimization for a variety of many-core architectures without changing a single line of implementation code using the Alpaka library},
  author = {Alexander Matthes and René Widera and Erik Zenker and Benjamin Worpitz and Axel Huebl and Michael Bussmann},
  year   = {2017},
  eprint = {1706.10086},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.10086}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1706.10086.svg)](https://codeofpaper.com/paper/1706.10086)

Discussion