Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3368474.3368478acmotherconferencesArticle/Chapter ViewAbstractPublication PageshpcasiaConference Proceedingsconference-collections
research-article
Open access

Parallelization of All-Pairs-Shortest-Path Algorithms in Unweighted Graph

Published: 15 January 2020 Publication History

Abstract

The design of the network topology of a large-scale parallel computer system can be represented as an order/degree problem in graph theory. To solve the order/degree problem, it is necessary to obtain an all-pairs-shortest-path (APSP) of the graph. Thus, this paper evaluates two parallel algorithms that quickly find the APSP in unweighted graphs and compares their performance. The first APSP algorithm is based on the breadth-first search (BFS-APSP) and the second is based on the adjacency matrix (ADJ-APSP). First, we develop serial algorithms and threaded algorithms using OpenMP, and show that ADJ-APSP is up to 32.34 times faster than BFS-APSP. Next, we develop hybrid-parallel algorithms using OpenMP and MPI, and show that BFS-APSP is faster than ADJ-APSP under certain conditions because the maximum number of processes in BFS-APSP is greater than in ADJ-APSP. In addition, we parallelize ADJ-APSP using a single GPU (NVIDIA Tesla V100) and achieve a speed increase of up to 16.53-fold compared to that of a single CPU. Finally, we evaluate the performance of the algorithms using 128 GPUs and achieve a computation time 101.10 times faster than that using a single GPU. Moreover, it is shown that the calculation time of both algorithms can be greatly reduced when the input graphs are symmetric.

References

[1]
[n.d.]. The Degree/Diameter Problem - Combinatorics Wiki. http://combinatoricswiki.org/wiki/The_Degree/Diameter_Problem.
[2]
Ankit Singla et al. 2011. Jellyfish: Networking Data Centers Randomly. CoRR abs/1110.1687 (2011). arXiv:1110.1687 http://arxiv.org/abs/1110.1687
[3]
Andy Yoo et al. 2005. A Scalable Distributed Parallel Breadth-First Search Algorithm on BlueGene/L. In SC '05: Proceedings of the 2005 ACM/IEEE Conference on Supercomputing. 25--25. https://doi.org/10.1109/SC.2005.4
[4]
Hui Guo et al. 2018. Accelerating BFS via Data Structure-Aware Prefetching on GPU. IEEE Access 6 (2018), 60234--60248. https://doi.org/10.1109/ACCESS.2018.2876201
[5]
Jurij Leskovec et al. 2005. Realistic, Mathematically Tractable Graph Generation and Evolution, Using Kronecker Multiplication. In Knowledge Discovery in Databases: PKDD 2005. SpringerBerlinHeidelberg, Berlin, Heidelberg, 133--145.
[6]
Lijuan Luo et al. 2010. An Effective GPU Implementation of Breadth-first Search. In Proceedings of the 47th Design Automation Conference (DAC '10). 52--55. https://doi.org/10.1145/1837274.1837289
[7]
Nicholas Metropolis et al. 1953. Equation of State Calculations by Fast Computing Machines. The Journal of Chemical Physics 21, 6 (1953), 1087--1092.
[8]
Scott Beamer et al. 2012. Direction-optimizing Breadth-first Search. In Proceedings of the International Conference on High Performance Computing, Networking, Storage and Analysis (SC '12). IEEE Computer Society Press, Los Alamitos, CA, USA, Article 12, 10 pages.
[9]
Scott Kirkpatrick et al. 1983. Optimization by Simulated Annealing. Science 220, 4598 (1983), 671--680.
[10]
Virat Agarwal et al. 2010. Scalable Graph Exploration on Multi-core Processors. In Proceedings of the 2010 ACM/IEEE International Conference for High Performance Computing, Networking, Storage and Analysis (SC '10). IEEE Computer Society, Washington, DC, USA, 1--11. https://doi.org/10.1109/SC.2010.46
[11]
Hiroki Matsutani et al. 2014. Low-latency wireless 3D NoCs via randomized shortcut chips. In 2014 Design, Automation Test in Europe Conference Exhibition (DATE). 1--6. https://doi.org/10.7873/DATE.2014.286
[12]
Ji-Yong Shin et al. 2011. Small-world Datacenters. In Proceedings of the 2Nd ACM Symposium on Cloud Computing (SOCC '11). ACM, New York, NY, USA, Article 2, 13 pages. https://doi.org/10.1145/2038916.2038918
[13]
Masahiro Nakao et al. 2019. A Method for Order/Degree Problem Based on Graph Symmetry and Simulated Annealing with MPI/OpenMP Parallelization. In Proceedings of the International Conference on High Performance Computing in Asia-Pacific Region (HPC Asia 2019). ACM, 128--137. https://doi.org/10.1145/3293320.3293325
[14]
Michihiro Koibuchi et al. 2012. A case for random shortcut topologies for HPC interconnects. In 2012 39th Annual International Symposium on Computer Architecture (ISCA). 177--188. https://doi.org/10.1109/ISCA.2012.6237016
[15]
Michihiro Koibuchi et al. 2016. Optical network technologies for HPC: computer-architects point of view. IEICE Electronics Express 13, 6 (2016), 1--14. https://doi.org/10.1587/elex.13.20152007
[16]
Michihiro Koibuchi et al. 2018. Graph Golf: The Order/degree Problem Competition. http://research.nii.ac.jp/graphgolf.
[17]
Nobutaka Shimizu and Ryuhei Mori. 2016. Average Shortest Path Length of Graphs of Diameter 3. CoRR abs/1606.05119 (2016). arXiv:1606.05119 http://arxiv.org/abs/1606.05119
[18]
Robert W. Floyd. 1962. Algorithm 97: Shortest Path. Commun. ACM 5, 6 (June 1962), 345. https://doi.org/10.1145/367766.368168
[19]
Ryosuke Mizuno and Yawara Ishida. 2016. Constructing large-scale low-latency network from small optimal networks. In 2016 Tenth IEEE/ACM International Symposium on Networks-on-Chip (NOCS). 1--5. https://doi.org/10.1109/NOCS.2016.7579336
[20]
Ryuhei Mori. [n.d.]. https://github.com/ryuhei-mori/graph_ASPL.
[21]
Raimund Seidel. 1995. On the All-Pairs-Shortest-Path Problem in Unweighted Undirected Graphs. Journal of Computer and System Sciences 51, 3 (1995), 400--403. https://doi.org/10.1006/jcss.1995.1078
[22]
Stephen Warshall. 1962. A Theorem on Boolean Matrices. J. ACM 9, 1 (Jan. 1962), 11--12. https://doi.org/10.1145/321105.321107
[23]
Takafumi Watanabe et al. 2008. Impact of topology and link aggregation on a PC cluster with Ethernet. In 2008 IEEE International Conference on Cluster Computing. 280--285. https://doi.org/10.1109/CLUSTR.2008.4663782
[24]
Teruaki Kitasuka and Masahiro Iida. 2016. A Heuristic Method of Generating Diameter 3 Graphs for Order/Degree Problem. CoRR abs/1609.03136 (2016). arXiv:1609.03136 http://arxiv.org/abs/1609.03136

Cited By

View all
  • (2024)Efficient Parallel Processing of All-Pairs Shortest Paths on Multicore and GPU SystemsIEEE Transactions on Consumer Electronics10.1109/TCE.2023.332732870:1(2896-2908)Online publication date: Feb-2024
  • (2023)The method which works in parallel and distributed into a large-scale graph in the regulation of vehicle movementPROBLEMS IN THE TEXTILE AND LIGHT INDUSTRY IN THE CONTEXT OF INTEGRATION OF SCIENCE AND INDUSTRY AND WAYS TO SOLVE THEM: (PTLICISIWS-2022)10.1063/5.0145688(040101)Online publication date: 2023
  • (2022)Graph optimization algorithm using symmetry and host bias for low-latency indirect networkParallel Computing10.1016/j.parco.2022.102983114:COnline publication date: 1-Dec-2022
  • Show More Cited By

Index Terms

  1. Parallelization of All-Pairs-Shortest-Path Algorithms in Unweighted Graph

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    HPCAsia '20: Proceedings of the International Conference on High Performance Computing in Asia-Pacific Region
    January 2020
    247 pages
    ISBN:9781450372367
    DOI:10.1145/3368474
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    In-Cooperation

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 15 January 2020

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. GPU
    2. graph theory
    3. hybrid parallelization
    4. network

    Qualifiers

    • Research-article
    • Research
    • Refereed limited

    Conference

    HPCAsia2020

    Acceptance Rates

    Overall Acceptance Rate 69 of 143 submissions, 48%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)134
    • Downloads (Last 6 weeks)19
    Reflects downloads up to 25 Feb 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Efficient Parallel Processing of All-Pairs Shortest Paths on Multicore and GPU SystemsIEEE Transactions on Consumer Electronics10.1109/TCE.2023.332732870:1(2896-2908)Online publication date: Feb-2024
    • (2023)The method which works in parallel and distributed into a large-scale graph in the regulation of vehicle movementPROBLEMS IN THE TEXTILE AND LIGHT INDUSTRY IN THE CONTEXT OF INTEGRATION OF SCIENCE AND INDUSTRY AND WAYS TO SOLVE THEM: (PTLICISIWS-2022)10.1063/5.0145688(040101)Online publication date: 2023
    • (2022)Graph optimization algorithm using symmetry and host bias for low-latency indirect networkParallel Computing10.1016/j.parco.2022.102983114:COnline publication date: 1-Dec-2022
    • (2021)GPU Parallelization of All-Pairs-Shortest-Path Algorithm in Low-Degree Unweighted Regular GraphProceedings of the the 8th International Virtual Conference on Applied Computing & Information Technology10.1145/3468081.3471122(51-55)Online publication date: 20-Jun-2021
    • (undefined)Graph Optimization Algorithm Using Symmetry and Host Bias for Low-Latency Indirect NetworkSSRN Electronic Journal10.2139/ssrn.4048955

    View Options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Login options

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media