Cache Miss Analysis for GPU Programs Based on Stack Distance Profile
Authors:
- Tao TangTTTao Tang
- Xuejun YangXYXuejun Yang
- Yisong LinYLYisong Lin
- 1 June 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 10636927,p. 623-634
Abstract
Using the graphics processing unit (GPU) to accelerate the general purpose computation has attracted much attention from both the academia and industry due to GPU's powerful computing capacity. Thus optimization of GPU programs has become a popular research direction. In order to support the general purpose computing more efficiently, GPU has integrated the general data cache to replace the existing software-managed on-chip memory. Consequently, improving the usage of the data cache becomes of vital importance to improve the performance of the GPU programs. The foundation of cache locality optimizations is efficient analysis and prediction of the cache behavior. Unfortunately, existing cache miss analysis models are based on sequential programs and thus cannot be used to analyze the GPU programs directly. In this paper, based on the deep analysis of GPU's execution model, we propose, for the first time, a cache miss analysis model for the GPU programs. We divide the problem into two subproblems: stack distance profile analysis of single thread block and cache contention analysis of multiple thread blocks. The experimental results from nine typical application kernels in the scientific computing field illustrate that our method is efficient and can be used to guide the cache locality optimizations for the GPU programs.Keywords
This publication has 16 references indexed in Scilit:
- NVIDIA cuda software and gpu parallel computing architecture2007
- A Survey of General‐Purpose Computation on Graphics HardwareComputer Graphics Forum, 2007
- Efficient and accurate analytical modeling of whole-program data cache behaviorIEEE Transactions on Computers, 2004
- Programmable stream processorsComputer, 2003
- Compile-Time Based Performance PredictionLecture Notes in Computer Science, 2000
- Cache miss equationsACM Transactions on Programming Languages and Systems, 1999
- A hyperplane based approach for optimizing spatial locality in loop nests1998
- Compiler transformations for high-performance computingACM Computing Surveys, 1994
- A data locality optimizing algorithm1991
- Evaluating associativity in CPU cachesIEEE Transactions on Computers, 1989