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 条
  • [1] A Supernodal All-Pairs Shortest Path Algorithm
    Sao, Piyush
    Kannan, Ramakrishnan
    Gera, Prasun
    Vuduc, Richard
    PROCEEDINGS OF THE 25TH ACM SIGPLAN SYMPOSIUM ON PRINCIPLES AND PRACTICE OF PARALLEL PROGRAMMING (PPOPP '20), 2020, : 250 - 261
  • [2] An all-pairs shortest path algorithm for bipartite graphs
    Torgasin, Svetlana
    Zimmermann, Karl-Heinz
    OPEN COMPUTER SCIENCE, 2013, 3 (04) : 149 - 157
  • [3] On the all-pairs shortest-path algorithm of Moffat and Takaoka
    Mehlhorn, K
    Priebe, V
    RANDOM STRUCTURES & ALGORITHMS, 1997, 10 (1-2) : 205 - 220
  • [4] OpenMP's Asynchronous Offloading for All-pairs Shortest Path Graph Algorithms on GPUs
    Thavappiragasam, Mathialakan
    Kale, Vivek
    2022 IEEE/ACM INTERNATIONAL WORKSHOP ON HIERARCHICAL PARALLELISM FOR EXASCALE COMPUTING (HIPAR), 2022, : 1 - 11
  • [5] A DECOMPOSITION ALGORITHM FOR THE ALL-PAIRS SHORTEST-PATH PROBLEM ON MASSIVELY-PARALLEL COMPUTER ARCHITECTURES
    HABBAL, MB
    KOUTSOPOULOS, HN
    LERMAN, SR
    TRANSPORTATION SCIENCE, 1994, 28 (04) : 292 - 308
  • [6] A faster algorithm for the all-pairs shortest path problem and its application
    Takaoka, T
    COMPUTING AND COMBINATORICS, PROCEEDINGS, 2004, 3106 : 278 - 289
  • [7] Solving all-pairs shortest path problem based on amoeba algorithm
    2013, ICIC Express Letters Office, Tokai University, Kumamoto Campus, 9-1-1, Toroku, Kumamoto, 862-8652, Japan (07):
  • [8] NOTE ON SPIRAS ALGORITHM FOR ALL-PAIRS SHORTEST-PATH PROBLEM
    CARSON, JS
    LAW, AM
    SIAM JOURNAL ON COMPUTING, 1977, 6 (04) : 696 - 699
  • [9] External matrix multiplication and all-pairs shortest path
    Sibeyn, JF
    INFORMATION PROCESSING LETTERS, 2004, 91 (02) : 99 - 106
  • [10] Parallel All-Pairs Shortest Path Algorithm: Network-Decomposition Approach
    Abdelghany, Khaled
    Hashemi, Hossein
    Alnawaiseh, Ala
    TRANSPORTATION RESEARCH RECORD, 2016, (2567) : 95 - 104