An Accurate GPU Performance Model for Effective Control Flow Divergence Optimization

被引:23
作者
Cui, Zheng
Liang, Yun
Rupnow, Kyle
Chen, Deming
机构
来源
2012 IEEE 26TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM (IPDPS) | 2012年
关键词
GPGPU; CUDA; performance metric; performance estimation; control flow divergence; DYNAMIC WARP FORMATION;
D O I
10.1109/IPDPS.2012.18
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Graphics processing units (GPUs) are increasingly critical for general-purpose parallel processing performance. GPU hardware is composed of many streaming multiprocessors, each of which employs the single-instruction multiple-data (SIMD) execution style. This massively parallel architecture allows GPUs to execute tens of thousands of threads in parallel. Thus, GPU architectures efficiently execute heavily data-parallel applications. However, due to this SIMD execution style, resource utilization and thus overall performance can be significantly affected if computation threads must take diverging control paths. Control flow divergence in GPUs is a well-known problem: prior approaches have attempted to reduce control flow divergence through code transformations, memory access indirection, and input data reorganization. However, as we will demonstrate, the utility of these transformations is seriously affected by the lack of a guiding metric that properly estimates how control flow divergence affects application performance. In this paper, we introduce a metric that simply and accurately estimates performance of computation-bound GPU kernels with control flow divergence, and use the metric as a value function for thread re-grouping algorithms. We measure the performance on NVIDIA GTS250 GPU. For the tested set of applications, our experiments demonstrate that the proposed metric correlates well with actual GPU application performance. Through thread re-grouping guided by our metric, control flow divergence optimization can improve application performance by up to 3.19X.
引用
收藏
页码:83 / 94
页数:12
相关论文
共 23 条
[1]  
[Anonymous], 1987, ACM siggraph computer graphics, DOI [10.1145/37401.37422, DOI 10.1145/37401.37422]
[2]  
[Anonymous], PACT 2001
[3]  
[Anonymous], ISCA
[4]  
[Anonymous], OPENCL SPEC VERS 1 0
[5]  
[Anonymous], DATE
[6]  
[Anonymous], THESIS U ILLINOIS UR
[7]  
[Anonymous], 2011, NVIDIA CUDA C Programming Guide
[8]   An Adaptive Performance Modeling Tool for GPU Architectures [J].
Baghsorkhi, Sara S. ;
Delahaye, Matthieu ;
Patel, Sanjay J. ;
Gropp, William D. ;
Hwu, Wen-mei W. .
ACM SIGPLAN NOTICES, 2010, 45 (05) :105-114
[9]  
Bakhoda A, 2009, INT SYM PERFORM ANAL, P163, DOI 10.1109/ISPASS.2009.4919648
[10]   Dynamic warp formation and scheduling for efficient GPU control flow [J].
Fung, Wilson W. L. ;
Sham, Ivan ;
Yuan, George ;
Aamodt, Tor M. .
MICRO-40: PROCEEDINGS OF THE 40TH ANNUAL IEEE/ACM INTERNATIONAL SYMPOSIUM ON MICROARCHITECTURE, 2007, :407-+