KLARAPTOR: A Tool for Dynamically Finding Optimal Kernel Launch Parameters Targeting CUDA Programs

Alexander Brandt, Davood Mohajerani, Marc Moreno Maza, Jeeva Paudel, Linxiao Wang
11/5/2019
cs.DCcs.PF

Official code: orcca-uwo/KLARAPTOR (5 stars, C, GPL-3.0, last commit 2023-04-26).

Abstract

In this paper we present KLARAPTOR (Kernel LAunch parameters RAtional Program estimaTOR), a new tool built on top of the LLVM Pass Framework and NVIDIA CUPTI API to dynamically determine the optimal values of kernel launch parameters of a CUDA program P. To be precise, we describe a novel technique to statically build (at the compile time of P) a so-called rational program R.

Show full abstract

Using a performance prediction model, and knowing particular data and hardware parameters of P at runtime, the program R can automatically and dynamically determine the values of launch parameters of P that will yield optimal performance. Our technique can be applied to parallel programs in general, as well as to generic performance prediction models which account for program and hardware parameters. We are particularly interested in programs targeting manycore accelerators. We have implemented and successfully tested our technique in the context of GPU kernels written in CUDA using the MWP-CWP performance prediction model.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

KLARAPTOR: A Tool for Dynamically Finding Optimal Kernel Launch Parameters Targeting CUDA Programs

51C, TeXAug 19, 20193 years agoGPL-3.0
bpascompiler-optimizationcudacuda-kernelscupti+3 more

Similar Papers

Cite this paper

@article{brandt2019klaraptor,
  title  = {KLARAPTOR: A Tool for Dynamically Finding Optimal Kernel Launch Parameters Targeting CUDA Programs},
  author = {Alexander Brandt and Davood Mohajerani and Marc Moreno Maza and Jeeva Paudel and Linxiao Wang},
  year   = {2019},
  eprint = {1911.02373},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.02373}
}

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/1911.02373.svg)](https://codeofpaper.com/paper/1911.02373)

Discussion