KLARAPTOR: A Tool for Dynamically Finding Optimal Kernel Launch Parameters Targeting CUDA Programs
Department of Computer Science, University of Western Ontario, London, Canada
arXiv:1911.02373 [cs.DC], (5 Nov 2019)
@misc{alex2019klaraptor,
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},
primaryClass={cs.DC}
}
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. 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.
November 10, 2019 by hgpu