International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 95 - Number 15 |
Year of Publication: 2014 |
Authors: Gaurav Hajela, Manish Pandey |
10.5120/16667-6659 |
Gaurav Hajela, Manish Pandey . Parallel Implementations for Solving Shortest Path Problem using Bellman-Ford. International Journal of Computer Applications. 95, 15 ( June 2014), 1-6. DOI=10.5120/16667-6659
In this paper, different parallel implementations of Bellman-Ford algorithm on GPU using OpenCL are presented. These variants include Bellman-Ford for solving single source shortest path (SSSP) having two variants and Bellman-Ford for all pair shortest path (APSP) problems. Also, a comparative analysis of their performances on CPU and GPU is discussed in this paper. Write-write consistency in Bellman-Ford is overcome using synchronization mechanism available in OpenCL and by explicit synchronization by modifying the algorithm. An average speed up of 13. 8x for parallel bellman ford for SSSP and an average speed up of 18. 5x for bellman ford for APSP is achieved by proposed algorithm.