Demystifying the 16 × 16 thread‐block for stencils on the GPU. (12th August 2015)
- Record Type:
- Journal Article
- Title:
- Demystifying the 16 × 16 thread‐block for stencils on the GPU. (12th August 2015)
- Main Title:
- Demystifying the 16 × 16 thread‐block for stencils on the GPU
- Authors:
- Tabik, Siham
Peemen, Maurice
Guil, Nicolas
Corporaal, Henk - Abstract:
- Summary: Stencil computation is of paramount importance in many fields, in image processing, structural biology and biomedicine, among others. There exists a permanent demand of maximizing the performance of stencils on state‐of‐the‐art architectures, such graphics processing units (GPUs). One of the important issues when optimizing these kernels for the GPU is the selection of the best thread‐block that maximizes the overall performance. Usually, programmers look for the optimal thread‐block configuration in a reduced space of square thread‐block configurations or simply use the best configurations reported in previous works, which is usually 16 × 16. This paper provides a better understanding of the impact of thread‐block configurations on the performance of stencils on the GPU. In particular, we model locality and parallelism and consider that the optimal configurations are within the space that provides: (1) a small number of global memory communications; (2) a good shared memory utilization with small numbers of conflicts; (3) a good streaming multi‐processors utilization; and (4) a high efficiency of the threads within a thread‐block. The model determines the set of optimal thread‐block configurations without the need of executing the code. We validate the proposed model using six stencils with different halo widths and show that it reduces the optimization space to around 25 % of the total valid space. The configurations in this space achieve at least a throughput ofSummary: Stencil computation is of paramount importance in many fields, in image processing, structural biology and biomedicine, among others. There exists a permanent demand of maximizing the performance of stencils on state‐of‐the‐art architectures, such graphics processing units (GPUs). One of the important issues when optimizing these kernels for the GPU is the selection of the best thread‐block that maximizes the overall performance. Usually, programmers look for the optimal thread‐block configuration in a reduced space of square thread‐block configurations or simply use the best configurations reported in previous works, which is usually 16 × 16. This paper provides a better understanding of the impact of thread‐block configurations on the performance of stencils on the GPU. In particular, we model locality and parallelism and consider that the optimal configurations are within the space that provides: (1) a small number of global memory communications; (2) a good shared memory utilization with small numbers of conflicts; (3) a good streaming multi‐processors utilization; and (4) a high efficiency of the threads within a thread‐block. The model determines the set of optimal thread‐block configurations without the need of executing the code. We validate the proposed model using six stencils with different halo widths and show that it reduces the optimization space to around 25 % of the total valid space. The configurations in this space achieve at least a throughput of 75 % of the best configuration and guarantee the inclusion of the best configurations. Copyright © 2015 John Wiley & Sons, Ltd. … (more)
- Is Part Of:
- Concurrency and computation. Volume 27:Number 18(2015:Dec.)
- Journal:
- Concurrency and computation
- Issue:
- Volume 27:Number 18(2015:Dec.)
- Issue Display:
- Volume 27, Issue 18 (2015)
- Year:
- 2015
- Volume:
- 27
- Issue:
- 18
- Issue Sort Value:
- 2015-0027-0018-0000
- Page Start:
- 5557
- Page End:
- 5573
- Publication Date:
- 2015-08-12
- Subjects:
- modeling -- global memory transactions -- shared memory transactions -- thread‐block -- concurrent thread‐blocks -- GPU -- stencils -- convolutions
Parallel processing (Electronic computers) -- Periodicals
Parallel computers -- Periodicals
004.35 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/cpe.3591 ↗
- Languages:
- English
- ISSNs:
- 1532-0626
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 3405.622000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 784.xml