Cargando…

Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs

Analytic, first-principles performance modeling of distributed-memory parallel codes is notoriously imprecise. Even for applications with extremely regular and homogeneous compute-communicate phases, simply adding communication time to computation time does often not yield a satisfactory prediction...

Descripción completa

Detalles Bibliográficos
Autores principales: Afzal, Ayesha, Hager, Georg, Wellein, Gerhard
Formato: Online Artículo Texto
Lenguaje:English
Publicado: 2020
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7295361/
http://dx.doi.org/10.1007/978-3-030-50743-5_20
_version_ 1783546636175147008
author Afzal, Ayesha
Hager, Georg
Wellein, Gerhard
author_facet Afzal, Ayesha
Hager, Georg
Wellein, Gerhard
author_sort Afzal, Ayesha
collection PubMed
description Analytic, first-principles performance modeling of distributed-memory parallel codes is notoriously imprecise. Even for applications with extremely regular and homogeneous compute-communicate phases, simply adding communication time to computation time does often not yield a satisfactory prediction of parallel runtime due to deviations from the expected simple lockstep pattern caused by system noise, variations in communication time, and inherent load imbalance. In this paper, we highlight the specific cases of provoked and spontaneous desynchronization of memory-bound, bulk-synchronous pure MPI and hybrid MPI+OpenMP programs. Using simple microbenchmarks we observe that although desynchronization can introduce increased waiting time per process, it does not necessarily cause lower resource utilization but can lead to an increase in available bandwidth per core. In case of significant communication overhead, even natural noise can shove the system into a state of automatic overlap of communication and computation, improving the overall time to solution. The saturation point, i.e., the number of processes per memory domain required to achieve full memory bandwidth, is pivotal in the dynamics of this process and the emerging stable wave pattern. We also demonstrate how hybrid MPI-OpenMP programming can prevent desirable desynchronization by eliminating the bandwidth bottleneck among processes. A Chebyshev filter diagonalization application is used to demonstrate some of the observed effects in a realistic setting.
format Online
Article
Text
id pubmed-7295361
institution National Center for Biotechnology Information
language English
publishDate 2020
record_format MEDLINE/PubMed
spelling pubmed-72953612020-06-16 Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs Afzal, Ayesha Hager, Georg Wellein, Gerhard High Performance Computing Article Analytic, first-principles performance modeling of distributed-memory parallel codes is notoriously imprecise. Even for applications with extremely regular and homogeneous compute-communicate phases, simply adding communication time to computation time does often not yield a satisfactory prediction of parallel runtime due to deviations from the expected simple lockstep pattern caused by system noise, variations in communication time, and inherent load imbalance. In this paper, we highlight the specific cases of provoked and spontaneous desynchronization of memory-bound, bulk-synchronous pure MPI and hybrid MPI+OpenMP programs. Using simple microbenchmarks we observe that although desynchronization can introduce increased waiting time per process, it does not necessarily cause lower resource utilization but can lead to an increase in available bandwidth per core. In case of significant communication overhead, even natural noise can shove the system into a state of automatic overlap of communication and computation, improving the overall time to solution. The saturation point, i.e., the number of processes per memory domain required to achieve full memory bandwidth, is pivotal in the dynamics of this process and the emerging stable wave pattern. We also demonstrate how hybrid MPI-OpenMP programming can prevent desirable desynchronization by eliminating the bandwidth bottleneck among processes. A Chebyshev filter diagonalization application is used to demonstrate some of the observed effects in a realistic setting. 2020-05-22 /pmc/articles/PMC7295361/ http://dx.doi.org/10.1007/978-3-030-50743-5_20 Text en © The Author(s) 2020 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
spellingShingle Article
Afzal, Ayesha
Hager, Georg
Wellein, Gerhard
Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title_full Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title_fullStr Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title_full_unstemmed Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title_short Desynchronization and Wave Pattern Formation in MPI-Parallel and Hybrid Memory-Bound Programs
title_sort desynchronization and wave pattern formation in mpi-parallel and hybrid memory-bound programs
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7295361/
http://dx.doi.org/10.1007/978-3-030-50743-5_20
work_keys_str_mv AT afzalayesha desynchronizationandwavepatternformationinmpiparallelandhybridmemoryboundprograms
AT hagergeorg desynchronizationandwavepatternformationinmpiparallelandhybridmemoryboundprograms
AT welleingerhard desynchronizationandwavepatternformationinmpiparallelandhybridmemoryboundprograms