Enhanced OpenMP Algorithm to Compute All-Pairs Shortest Path on X86 Architectures

被引:0
|
作者
Calderon, Sergio [1 ,2 ]
Rucci, Enzo [1 ,3 ]
Chichizola, Franco [1 ]
机构
[1] UNLP CIC, Fac Informat, III LIDI, RA-1900 La Plata, Buenos Aires, Argentina
[2] CIC, Becario Entrenamiento, La Plata, Argentina
[3] Comis Invest Cient CIC, RA-1900 La Plata, Buenos Aires, Argentina
来源
COMPUTER SCIENCE-CACIC 2023 | 2024年 / 2123卷
关键词
Floyd-Warshall; Multicore; APSP; Xeon; Xeon Phi Knights Landing; Core; OpenMP;
D O I
10.1007/978-3-031-62245-8_4
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Graphs have become a key tool when modeling and solving problems in different areas. The Floyd-Warshall (FW) algorithm computes the shortest path between all pairs of vertices in a graph and is employed in areas like communication networking, traffic routing, bioinformatics, among others. However, FW is computationally and spatially expensive since it requires O(n(3)) operations and O(n(2)) memory space. As the graph gets larger, parallel computing becomes necessary to provide a solution in an acceptable time range. In this paper, we studied a FW code developed for Xeon Phi KNL processors and adapted it to run on any Intel x86 processors, losing the specificity of the former. To do so, we verified one by one the optimizations proposed by the original code, making adjustments to the base code where necessary, and analyzing its performance on two Intel servers under different test scenarios. In addition, a new optimization was proposed to increase the concurrency degree of the parallel algorithm, which was implemented using two different synchronization mechanisms. The experimental results show that all optimizations were beneficial on the two x86 platforms selected. Last, the new optimization proposal improved performance by up to 23%.
引用
收藏
页码:46 / 61
页数:16
相关论文
共 50 条
  • [31] FINDING THE HIDDEN PATH - TIME-BOUNDS FOR ALL-PAIRS SHORTEST PATHS
    KARGER, DR
    KOLLER, D
    PHILLIPS, SJ
    SIAM JOURNAL ON COMPUTING, 1993, 22 (06) : 1199 - 1217
  • [32] A Reoptimization-Based All-Pairs Shortest Path Algorithm for Large-Scale Network-RASP Algorithm
    Jiang J.-C.
    Wu L.-X.
    Zhang Y.-Y.
    Liu S.-J.
    Dongbei Daxue Xuebao/Journal of Northeastern University, 2017, 38 (07): : 1037 - 1042
  • [33] An All Pairs Shortest Path Algorithm for Dynamic Graphs
    Alshammari, Muteb
    Rezgui, Abdelmounaam
    INTERNATIONAL JOURNAL OF MATHEMATICS AND COMPUTER SCIENCE, 2020, 15 (01): : 347 - 365
  • [34] Efficient Parallel All-Pairs Shortest Paths Algorithm for Complex Graph Analysis
    Kim, Jong Wook
    Choi, Hyoeun
    Bae, Seung-Hee
    47TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING (ICPP '18), 2018,
  • [35] Accelerating all-pairs shortest path algorithms for bipartite graphs on graphics processing units
    Hanif, Muhammad Kashif
    Zimmermann, Karl-Heinz
    Anees, Asad
    MULTIMEDIA TOOLS AND APPLICATIONS, 2022, 81 (07) : 9549 - 9566
  • [36] An efficient dynamic algorithm for maintaining all-pairs shortest paths in stochastic networks
    Misra, S
    Oommen, BJ
    IEEE TRANSACTIONS ON COMPUTERS, 2006, 55 (06) : 686 - 702
  • [37] Solving all-pairs shortest path by single-source computations: Theory and practice
    Brodnik, Andrej
    Grgurovic, Marko
    DISCRETE APPLIED MATHEMATICS, 2017, 231 : 119 - 130
  • [38] Differentially Private All-Pairs Shortest Path Distances: Improved Algorithms and Lower Bounds
    Chen, Justin Y.
    Ghazi, Badih
    Kumar, Ravi
    Manurangsi, Pasin
    Narayanan, Shyam
    Nelson, Jelani
    Xu, Yinzhan
    PROCEEDINGS OF THE 2023 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2023, : 5040 - 5067
  • [39] Accelerating all-pairs shortest path algorithms for bipartite graphs on graphics processing units
    Muhammad Kashif Hanif
    Karl-Heinz Zimmermann
    Asad Anees
    Multimedia Tools and Applications, 2022, 81 : 9549 - 9566
  • [40] All-Pairs Shortest Path algorithms for planar graph for GPU-accelerated clusters
    Djidjev, Hristo
    Chapuis, Guillaume
    Andonov, Rumen
    Thulasidasan, Sunil
    Lavenier, Dominique
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2015, 85 : 91 - 103