An Optimal Parallel Algorithm for Computing the Summed Area Table on the GPU
Authors:
- Yutaro EmotoYEYutaro Emoto
- Shunji FunasakaSFShunji Funasaka
- Hiroki TokuraHTHiroki Tokura
- Takumi HondaTHTakumi Honda
- Koji NakanoKNKoji Nakano
- Yasuaki ItoYIYasuaki Ito
- 1 May 2018
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 763-772
Abstract
The summed area table (SAT) of a matrix is a data structure frequently used in the area of computer vision, which can be obtained by computing the column-wise prefix-sums and then the row-wise prefix-sums. The main contribution of this paper is to present a very efficient parallel algorithm for computing the SAT of a matrix stored in the global memory of the GPU. Our new parallel algorithm uses two techniques, single kernel soft synchronization and look back techniques to compute the SAT efficiently. It performs approximately one read and one write operations per element to the global memory. Since all elements in the matrix must be read once, and those in the resulting SAT must be written, any SAT computation cannot be faster than duplication of the matrix in the global memory. Thus, our algorithm is theoretically optimal in terms of global memory access. We have implemented our parallel algorithm and previously published algorithms for computing the SAT to run on NVIDIA TITAN V GPU. Our parallel SAT algorithm runs faster than all previous algorithms for matrices of sizes from256× 256 to 32K× 32K. Also, the overhead ratio over matrix duplication can be only 5.7%, so it is also practically optimal.Keywords
This publication has 11 references indexed in Scilit:
- Almost Optimal Column-wise Prefix-sum Computation on the GPU2018
- Single Kernel Soft Synchronization Technique for Task Arrays on CUDA-enabled GPUs, with Applications2017
- Bitwise Parallel Bulk Computation on the GPU, with Application to the CKY Parsing for Context-Free Grammars2016
- Accelerating digital halftoning using the local exhaustive search on the GPUConcurrency and Computation: Practice and Experience, 2016
- Parallel Algorithms for the Summed Area Table on the Asynchronous Hierarchical Memory Machine, with GPU implementations2014
- The Hierarchical Memory Machine Model for GPUs2013
- Simple memory machine models for GPUsInternational Journal of Parallel, Emergent and Distributed Systems, 2012
- GPU-efficient recursive filtering and summed-area tablesACM Transactions on Graphics, 2011
- Implementations of a Parallel Algorithm for Computing Euclidean Distance Map in Multicore Processors and GPUsInternational Journal of Networking and Computing, 2011
- Summed-area tables for texture mapping1984