Performance Debugging of GPGPU Applications with the Divergence Map


The increasing programability and the high computational power of Graphical Processing Units (GPU) make them attractive to general purpose programming. However, taking full bene t of this execution environment is a challenging task. One of these challenges stem from divergences, a phenomenon that occurs when threads that execute in lock-step are forced to take di erent program paths due to branches in the code. In face of divergences, some threads will have to wait, idly, while their diverging siblings execute. Optimizing the code to avoid divergences is diffcult, because this task demands a deep understanding of programs that might be large and convoluted. In order to facilitate the detection of divergences, this paper introduces the divergence map, a data structure that indicates the location and the volume of divergences in a program. We build this map via dynamic profiling techniques, which we have implemented on top of an open source CUDA compiler. To illustrate the importance of the divergence map, we have used it to pin-point the core regions that must be optimized in well known public applications. By hand optimizing some applications, we have added 9-11% speedups onto kernels that have already gone through the sieve of many programmers.

DOI: 10.1109/SBAC-PAD.2010.38

Extracted Key Phrases

8 Figures and Tables

Cite this paper

@article{Coutinho2010PerformanceDO, title={Performance Debugging of GPGPU Applications with the Divergence Map}, author={Bruno Coutinho and Diogo Sampaio and Fernando Magno Quint{\~a}o Pereira and Wagner Meira}, journal={2010 22nd International Symposium on Computer Architecture and High Performance Computing}, year={2010}, pages={33-40} }