Optimizing dynamic programming on graphics processing units via data reuse and data prefetch with inter-block barrier synchronization

Chao Chin Wu, Kai Cheng Wei, Ting Hong Lin

研究成果: Conference contribution

5 引文 斯高帕斯(Scopus)

摘要

Our previous study focused on accelerating an important category of DP problems, called nonserial polyadic dynamic programming (NPDP), on a graphics processing unit (GPU). In NPDP applications, the degree of parallelism varies significantly in different stages of computation, making it difficult to fully utilize the compute power of hundreds of processing cores in a GPU. To address this challenge, we proposed a methodology that can adaptively adjust the threadlevel parallelism in mapping a NPDP problem onto the GPU, thus providing sufficient and steady degrees of parallelism across different compute stages. This work aims at further improving the performance of NPDP problems. Subproblems and data are tiled to make it possible to fit small data regions into shared memory and reuse the buffered data for each tile of subproblems, thus reducing the amount of global memory access. However, we found invoking the same kernel many times, due to data consistency enforcement across different stages, makes it impossible to reuse the tiled data in shared memory after the kernel is invoked again. Fortunately, the inter-block synchronization technique allows us to invoke the kernel exactly one time with the restriction that the maximum number of blocks is equal to the total number of streaming multiprocessors. In addition to data reuse, invoking the kernel only one time also enables us to prefetch data to shared memory across inter-block synchronization point, which improves the performance more than data reuse. We realize our approach in a real-world NPDP application - the optimal matrix parenthesization problem. Experimental results demonstrate invoking a kernel only one time cannot guarantee performance improvement unless we also reuse and prefetch data across barrier synchronization points.

原文English
主出版物標題Proceedings of the 2012 IEEE 18th International Conference on Parallel and Distributed Systems, ICPADS 2012
頁面45-52
頁數8
DOIs
出版狀態Published - 2012 十二月 1
事件18th IEEE International Conference on Parallel and Distributed Systems, ICPADS 2012 - Singapore, Singapore
持續時間: 2012 十二月 172012 十二月 19

出版系列

名字Proceedings of the International Conference on Parallel and Distributed Systems - ICPADS
ISSN(列印)1521-9097

Other

Other18th IEEE International Conference on Parallel and Distributed Systems, ICPADS 2012
國家Singapore
城市Singapore
期間12-12-1712-12-19

All Science Journal Classification (ASJC) codes

  • Hardware and Architecture

指紋 深入研究「Optimizing dynamic programming on graphics processing units via data reuse and data prefetch with inter-block barrier synchronization」主題。共同形成了獨特的指紋。

引用此