{"title":"Practical, linear-time, fully distributed algorithms for irregular gather and scatter","authors":"J. Träff","doi":"10.1145/3127024.3127025","DOIUrl":null,"url":null,"abstract":"We present new, simple, fully distributed, practical algorithms with linear time communication cost for irregular gather and scatter operations in which processors contribute or consume possibly different amounts of data. In a homogeneous, linear cost transmission model with start-up latency α and cost per unit β, the new algorithms take time 3⌈log2p⌉α + β Σi≠r mi where p is the number of processors, mi the amount of data for processor i, 0 ≤ i < p, and processor r, 0 ≤ r < p a root processor determined by the algorithm. With a fixed, externally given root processor r, there is an additive time penalty of at most β(Md' − mrd' − Σ0≤j<d' Mj) for some d' < ⌈log2 p⌉, where each Mj is the total amount of data in a tree of 2j different processors with roots rj as constructed by the algorithm. The worst-case time penalty is less than β Σi≠r mi. The algorithms have attractive properties for implementing the operations for MPI (the Message-Passing Interface). Standard algorithms using fixed trees take time either ⌈log2 p⌉(α + β Σi≠r mi) in the worst case, or (p − 1)α + Σi≠r βmi. We have used the new algorithms to give prototype implementations for the MPI_Gatherv and MPI_Scatterv collectives of MPI, and present benchmark results from a small and a medium-large InfiniBand cluster. In order to structure the experimental evaluation we formulate new performance guidelines for irregular collectives that can be used to assess the performance in relation to the corresponding regular collectives. We show that the new algorithms can fulfill these performance expectations within a large margin, and that standard implementations do not.","PeriodicalId":118516,"journal":{"name":"Proceedings of the 24th European MPI Users' Group Meeting","volume":"35 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-02-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 24th European MPI Users' Group Meeting","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3127024.3127025","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
We present new, simple, fully distributed, practical algorithms with linear time communication cost for irregular gather and scatter operations in which processors contribute or consume possibly different amounts of data. In a homogeneous, linear cost transmission model with start-up latency α and cost per unit β, the new algorithms take time 3⌈log2p⌉α + β Σi≠r mi where p is the number of processors, mi the amount of data for processor i, 0 ≤ i < p, and processor r, 0 ≤ r < p a root processor determined by the algorithm. With a fixed, externally given root processor r, there is an additive time penalty of at most β(Md' − mrd' − Σ0≤j