Back to Search Start Over

Analytical performance estimation during code generation on modern GPUs.

Authors :
Ernst, Dominik
Holzer, Markus
Hager, Georg
Knorr, Matthias
Wellein, Gerhard
Source :
Journal of Parallel & Distributed Computing. Mar2023, Vol. 173, p152-167. 16p.
Publication Year :
2023

Abstract

Automatic code generation is frequently used to create implementations of algorithms specifically tuned to particular hardware and application parameters. The code generation process involves the selection of adequate code transformations, tuning parameters, and parallelization strategies. We propose an alternative to time-intensive autotuning, scenario-specific performance models, or black-box machine learning to select the best-performing configuration. This paper identifies the relevant performance-defining mechanisms for memory-intensive GPU applications through a performance model coupled with an analytic hardware metric estimator. This enables a quick exploration of large configuration spaces to identify highly efficient code candidates with high accuracy. We examine the changes of the A100 GPU architecture compared to the predecessor V100 and address the challenges of how to model the data transfer volumes through the new memory hierarchy. We show how our method can be coupled to the "pystencils" stencil code generator, which is used to generate kernels for a range-four 3D-25pt stencil and a complex two-phase fluid solver based on the Lattice Boltzmann Method. For both, it delivers a ranking that can be used to select the best-performing candidate. The method is not limited to stencil kernels but can be integrated into any code generator that can generate the required address expressions. • Analytical Performance Modeling helps to find the best tuning parameters for code generation. • Analytical Performance Modeling gives insight that is unavailable to black box machine learning or auto tuning. • The thread block size is a decisive factor for GPU cache data volumes and performance. • GPU cache behavior and GPU performance can be accurately predicted based only on high level information. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
07437315
Volume :
173
Database :
Academic Search Index
Journal :
Journal of Parallel & Distributed Computing
Publication Type :
Academic Journal
Accession number :
160863976
Full Text :
https://doi.org/10.1016/j.jpdc.2022.11.003