A GPU Implementation of Dynamic Programming for the Optimal Polygon Triangulation

被引:14
|
作者
Ito, Yasuaki [1 ]
Nakano, Koji [1 ]
机构
[1] Hiroshima Univ, Dept Informat Engn, Higashihiroshima 7398527, Japan
来源
关键词
dynamic programming; parallel algorithms; coalesced memory access; GPGPU; CUDA;
D O I
10.1587/transinf.E96.D.2596
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
This paper presents a GPU (Graphics Processing Units) implementation of dynamic programming for the optimal polygon triangulation. Recently, GPUs can be used for general purpose parallel computation. Users can develop parallel programs running on GPUs using programming architecture called CUDA (Compute Unified Device Architecture) provided by NVIDIA. The optimal polygon triangulation problem for a convex polygon is an optimization problem to find a triangulation with minimum total weight. It is known that this problem for a convex n-gon can be solved using the dynamic programming technique in O(n(3)) time using a work space of size O(n(2)). In this paper, we propose an efficient parallel implementation of this O(n(3))-time algorithm on the GPU. In our implementation, we have used two new ideas to accelerate the dynamic programming. The first idea (adaptive granularity) is to partition the dynamic programming algorithm into many sequential kernel calls of CUDA, and to select the best parameters for the size and the number of blocks for each kernel call. The second idea (sliding and mirroring arrangements) is to arrange the working data for coalesced access of the global memory in the GPU to minimize the memory access overhead. Our implementation using these two ideas solves the optimal polygon triangulation problem for a convex 8192-gon in 5.57 seconds on the NVIDIA GeForce GTX 680, while a conventional CPU implementation runs in 1939.02 seconds. Thus, our GPU implementation attains a speedup factor of 348.02.
引用
收藏
页码:2596 / 2603
页数:8
相关论文
共 50 条
  • [1] A GPU Implementation of Bulk Execution of the Dynamic Programming for the Optimal Polygon Triangulation
    Yamashita, Kohei
    Ito, Yasuaki
    Nakano, Koji
    [J]. PARALLEL PROCESSING AND APPLIED MATHEMATICS (PPAM 2017), PT I, 2018, 10777 : 314 - 323
  • [2] Bulk execution of the dynamic programming for the optimal polygon triangulation problem on the GPU
    Yamashita, Kohei
    Ito, Yasuaki
    Nakano, Koji
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2019, 31 (19):
  • [3] A Pipeline Implementation for Dynamic Programming on GPU
    Miyazaki, Makoto
    Matsumae, Susumu
    [J]. 2018 SIXTH INTERNATIONAL SYMPOSIUM ON COMPUTING AND NETWORKING WORKSHOPS (CANDARW 2018), 2018, : 305 - 309
  • [4] IMPLEMENTATION OF THE CONVEX POLYGON TRIANGULATION ALGORITHM
    Saracevic, Muzafer
    Stanimirovic, Predrag
    Masovic, Sead
    Bisevac, Enver
    [J]. FACTA UNIVERSITATIS-SERIES MATHEMATICS AND INFORMATICS, 2012, 27 (02): : 213 - 228
  • [5] A Fast GPU Based Implementation of Optimal Binary Search Tree Using Dynamic Programming
    Wani, Mohsin Altaf
    Ahmad, Manzoor
    [J]. INFORMATION, COMMUNICATION AND COMPUTING TECHNOLOGY, 2017, 750 : 285 - 295
  • [6] Intelligent computing systems with actors - Parallel dynamic programming algorithm of the polygon triangulation problem
    Hsueh, H
    Mikolajczak, B
    [J]. INTELLIGENT INFORMATION SYSTEMS 2001, 2001, : 239 - 256
  • [7] Solving Dynamic Programming Problem by Pipeline Implementation on GPU
    Matsumae, Susumu
    Miyazaki, Makoto
    [J]. INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2018, 9 (12) : 518 - 523
  • [8] A GPU Implementation of a Look-Ahead Optimal Controller for Eco-Driving Based on Dynamic Programming
    Zhu, Zhaoxuan
    Gupta, Shobhit
    Pivaro, Nicola
    Deshpande, Shreshta Rajakumar
    Canova, Marcello
    [J]. 2021 EUROPEAN CONTROL CONFERENCE (ECC), 2021, : 899 - 904
  • [9] Optimized GPU Implementation for Dynamic Programming in Image Data Processing
    Ke, Jing
    Bednarz, Tomasz
    Sowmya, Arcot
    [J]. 2016 IEEE 35TH INTERNATIONAL PERFORMANCE COMPUTING AND COMMUNICATIONS CONFERENCE (IPCCC), 2016,
  • [10] ON THE MINIMALITY OF POLYGON TRIANGULATION
    CHEN, CY
    CHANG, RC
    [J]. BIT, 1990, 30 (04): : 570 - 582