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 条
  • [21] All-pairs shortest paths algorithm for highdimensional sparse graphs
    Urakov, A. R.
    Timeryaev, T., V
    PRIKLADNAYA DISKRETNAYA MATEMATIKA, 2013, 19 (01): : 84 - 92
  • [22] More effective crossover operators for the all-pairs shortest path problem
    Doerr, Benjamin
    Johannsen, Daniel
    Koetzing, Timo
    Neumann, Frank
    Theile, Madeleine
    THEORETICAL COMPUTER SCIENCE, 2013, 471 : 12 - 26
  • [23] SCALABILITY OF PARALLEL ALGORITHMS FOR THE ALL-PAIRS SHORTEST-PATH PROBLEM
    KUMAR, V
    SINGH, V
    JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 1991, 13 (02) : 124 - 138
  • [24] More Effective Crossover Operators for the All-Pairs Shortest Path Problem
    Doerr, Benjamin
    Johannsen, Daniel
    Koetzing, Timo
    Neumann, Frank
    Theile, Madeleine
    PARALLEL PROBLEMS SOLVING FROM NATURE - PPSN XI, PT I, 2010, 6238 : 184 - +
  • [25] A Heterogeneous Solution to the All-pairs Shortest Path Problem using FPGAs
    Chirila, Mihnea
    D'Alberto, Paolo
    Ting, Hsin-Yu
    Veidenbaum, Alexander
    Nicolau, Alexandru
    PROCEEDINGS OF THE TWENTY THIRD INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN (ISQED 2022), 2022, : 108 - 113
  • [26] Solving the Nearly Symmetric All-Pairs Shortest-Path Problem
    Brown, Gerald G.
    Carlyle, W. Matthew
    INFORMS JOURNAL ON COMPUTING, 2020, 32 (02) : 279 - 288
  • [27] Communication Avoiding All-Pairs Shortest Paths Algorithm for Sparse Graphs
    Zhu, Lin
    Hua, Qiang-Sheng
    Jin, Hai
    50TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, 2021,
  • [28] A New Deterministic Algorithm for Fully Dynamic All-Pairs Shortest Paths
    Chuzhoy, Julia
    Zhang, Ruimin
    PROCEEDINGS OF THE 55TH ANNUAL ACM SYMPOSIUM ON THEORY OF COMPUTING, STOC 2023, 2023, : 1159 - 1172
  • [29] A Fast Algorithm to Find All-Pairs Shortest Paths in Complex Networks
    Peng, Wei
    Hu, Xiaofeng
    Zhao, Feng
    Su, Jinshu
    PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE, ICCS 2012, 2012, 9 : 557 - 566
  • [30] Fast All-Pairs Shortest Paths Algorithm in Large Sparse Graph
    Yang, Shaofeng
    Liu, Xiandong
    Wang, Yunting
    He, Xin
    Tan, Guangming
    PROCEEDINGS OF THE 37TH INTERNATIONAL CONFERENCE ON SUPERCOMPUTING, ACM ICS 2023, 2023, : 277 - 288