Skip to main content

SSSP on GPU Without Atomic Operation

  • Conference paper
  • First Online:
Human Centered Computing (HCC 2016)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 9567))

Included in the following conference series:

  • 1620 Accesses

Abstract

Graph is a general theoretical model in many large scale data-driven applications. SSSP (Single Source Shortest Path) algorithm is a foundation for most important algorithms and applications. GPU remains its mainstream station in high performance computing with heterogeneous architecture computers. Because of the high parallelization of the GPU threads, the distances of the vertices of the GPU are updated by atomic operations to avoid the read and write errors. Most atomic operations are unnecessary since the read-write conflicts are rare in large graph. However, without atomic operations the result accuracy can’t be guaranteed. The atomic operations take large part of the running time of the program. To improve the performance of SSSP on GPU, we proposed an algorithm with data block iterations instead of atomic operations. The algorithm not only gets a high speed-up but also guarantees the accuracy of the result. Experimental results show that this SSSP algorithm gained a speedup of three times than the serial algorithm on CPU and more than ten times than the parallel algorithm on GPU with atomic operation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Dijkstra, E.W.: A note on two problems in connexion with graphs. Numer. Math. 1, 269–271 (1959). http://dx.doi.org/10.1007/BF01386390

    Article  MathSciNet  MATH  Google Scholar 

  2. Fredman, M.L., Tarjan, R.E.: Fibonacci heaps their uses in improved network optimization algorithms. J. ACM (JACM) 34, 596–615 (1987)

    Article  MathSciNet  Google Scholar 

  3. Bellman, R.: On a routing problem. Q. Appl. Math. 16, 87–90 (1958)

    MATH  Google Scholar 

  4. Meyer, U., Sanders, P.: Δ-stepping: a parallelizable shortest path algorithm. J. Algorithms 49, 114–152 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  5. http://www.nvidia.com/object/cuda_home.html#

  6. Sanders, J., Kandrot, E.: CUDA by Example: An Introduction to General-Purpose GPU Programming. Addison-Wesley, Upper Saddle River (2010)

    Google Scholar 

  7. Bell, N., Garland, M.: Implementing sparse matrix-vector multiplication on throughput-oriented processors. In: SC’s 2009: Proceedings of the 2009 ACM/IEEE Conference on Supercomputing, pp. 18:1–18:11, November 2009

    Google Scholar 

  8. Ortega-Arranz, H., Torres, Y.: A new GPU-based approach to the shortest path problem. IEEE (2013)

    Google Scholar 

Download references

Acknowledgement

This paper is supported by the Natural Science Foundation of China (61379048); Special Project of National CAS Union – The High Performance Cloud Service Platform for Enterprise Creative Computing; Special Project of Hebei-CAS Union (Hebei, No.14010015)–The Performance Optimization of Key Algorithms of Health Data Processing in Senile Dementia Analysis.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Changyou Zhang .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this paper

Cite this paper

Wang, F., Zhu, L., Zhang, C. (2016). SSSP on GPU Without Atomic Operation. In: Zu, Q., Hu, B. (eds) Human Centered Computing. HCC 2016. Lecture Notes in Computer Science(), vol 9567. Springer, Cham. https://doi.org/10.1007/978-3-319-31854-7_37

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-31854-7_37

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-31853-0

  • Online ISBN: 978-3-319-31854-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics