计算机科学 ›› 2012, Vol. 39 ›› Issue (3): 299-303.

• 体系结构 • 上一篇    下一篇

基于GPU的全源最短路径算法

邢星星,赵国兴,骆祖莹,方浩   

  1. (北京师范大学信息科学与技术学院 北京 100875)
  • 出版日期:2018-11-16 发布日期:2018-11-16

GPU-based Algorithm of Shortest Path

  • Online:2018-11-16 Published:2018-11-16

摘要: 针对有向图中每对顶点之间的最短路径问题,基于CPU集群并行算法,根据GPU并行计算加速机制,提出 了基于棋盘划分方式的GPU并行算法,以增加算法的并行性与数据的局部性。当有向图规模超过GPU显存限制 时,进一步提出了异步并行处理的GPU最短路径算法。实验结果表明,与CPU上单核算法相比,本算法具有如下加 速效果:C1)对于节点数少于1000。的小规模有向图,可以实现约155倍的加速;(2}对于节点数超过1000。的大规模 有向图,可实现约25倍的加速。

关键词: 全源最短路径,GPU,棋盘划分,Floyd算法

Abstract: As for the all-pairs shortest path problem in the graph, based on parallel algorithm in the CPU cluster envi- ronment, depending on parallel speedup mechanism on the GPU, in order to increase the parallelism and locality, chess- board division method was chosen for task division in this parallel algorithm on the GPU. Because the graph scale is lar- ger than the display memory, the asynchronous parallel algorithm on the GPU was presented. hhe experimental data proves that the algorithm has accelerating effects below compared with CPU with single core: first, for the small graph whose vertexes arc less than 10000, it is about 155 times faster; second,for the large graph whose vertexes arc more than 10000,it is about 25 times faster.

Key words: Shortest path, GPU, Chessboard division, Floyd

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!