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
相关论文
共 18 条
  • [1] [Anonymous], 2016, Intel Xeon Phi Processor High Performance Programming Knights
  • [2] Calderon S., 2023, ACT 29 C ARG CIENC C, P489
  • [3] Costi U., 2020, Tesina de Licenciatura en Informatica
  • [4] ALGORITHM-97 - SHORTEST PATH
    FLOYD, RW
    [J]. COMMUNICATIONS OF THE ACM, 1962, 5 (06) : 345 - 345
  • [5] Han S., 2006, Technical report
  • [6] Han S.-C., 2006, PROC INT C PARALLEL, P222, DOI [DOI 10.1145/1152154.1152189, 10.1145/1152154.1152189]
  • [7] Intel Corporation, Thread Affinity Interface
  • [8] Determination of the optimal escape routes of underground mine networks in emergency cases
    Jalali, S. E.
    Noroozi, M.
    [J]. SAFETY SCIENCE, 2009, 47 (08) : 1077 - 1082
  • [9] Khan Pritam, 2014, ANN IEEE INDIA C
  • [10] Nakaya A, 2001, Genome Inform, V12, P44