![]() |
Data dependency reduction in dynamic programming matrix |
---|---|
รหัสดีโอไอ | |
Title | Data dependency reduction in dynamic programming matrix |
Creator | Delgado, Guillermo |
Contributor | Chatchawit Aporntewan |
Publisher | Chulalongkorn University |
Publication Year | 2554 |
Keyword | Dynamic programming, Computer arithmetic, การโปรแกรมพลศาสตร์, การคำนวณของคอมพิวเตอร์ |
Abstract | Dynamic Programming (DP) plays an important role in solving a large number of computational problems. As the number of cores per processor is increasing rapidly, new software must be capable of exploiting the advantages of multi-core architectures. A typical DP begins with constructing a matrix, and then calculating each element one by one. The standard parallelization spawns multiple threads, one for each row, while maintains the data dependency via thread synchronization. However, as the number of threads increase, the performance degrades due to data dependency. Herein, we proposed a novel method for calculating a DP matrix in parallel. In contrast to the standard method that always calculates from up to down and left to right, our method performs the calculation in multiple directions. Therefore, the wait time for data dependency is remarkably reduced. To demonstrate our method, a local sequence alignment algorithm called Smith-Waterman (SW) was chosen as an instance of DP. However, our method is not only limited to SW algorithm, but it is applicable to other DP problems that have similar patterns of data dependency. A comparison with the standard method was conducted on a HP Z800 workstation with a total of eight cores. The results show that our method performs significantly faster. |
URL Website | cuir.car.chula.ac.th |