A Hybrid Circular Queue Method for Iterative Stencil Computations on GPUs

Yang Yang, Hui-Min Cui, Xiao-Bing Feng, Jing-Ling Xue
2012 Journal of Computer Science and Technology  
In this paper, we present a hybrid circular queue method that can significantly boost the performance of stencil computations on GPU by carefully balancing usage of registers and shared-memory. Unlike earlier methods that rely on circular queues predominantly implemented using indirectly addressable shared memory, our hybrid method exploits a new reuse pattern spanning across the multiple time steps in stencil computations so that circular queues can be implemented by both shared memory and
more » ... sters eAEectively in a balanced manner. We describe a framework that automatically finds the best placement of data in registers and shared memory in order to maximize the performance of stencil computations. Validation using four diAEerent types of stencils on three diAEerent GPU platforms shows that our hybrid method achieves speedups up to 2.93X over methods that use circular queues implemented with shared-memory only.
doi:10.1007/s11390-012-1206-3 fatcat:r45ekbmayjayrfrmka77nqqe44