skip to main content
10.1145/2642769.2642771acmotherconferencesArticle/Chapter ViewAbstractPublication Pageseurompi-asiaConference Proceedingsconference-collections
research-article

Optimal MPI Datatype Normalization for Vector and Index-block Types

Authors Info & Claims
Published:09 September 2014Publication History

ABSTRACT

The derived datatypes of MPI is an extremely powerful mechanism for specifying the layout of data in communication operations. It is desirable that MPI libraries internally simplify complex datatype descriptions into representations that are efficient for the communication operations in which they are used. This process is called datatype normalization, and MPI libraries typically employ simple heuristics for this task. In this paper we embark on a study of the inherent complexity of datatype normalization, and show that the problem with a specific, but flexible cost model can be solved cost-optimally for MPI vector and index-block types in polynomial time. For a type map consisting of n displacement-basetype pairs, we first give a type reconstruction algorithm running in O(n√n) time steps. We then use this algorithm for datatype normalization of given derived datatypes.

References

  1. E. Bajrović and J. L. Träff. Using MPI derived datatypes in numerical libraries. In Recent Advances in Message Passing Interface. 18th European MPI Users' Group Meeting, volume 6960 of Lecture Notes in Computer Science, pages 29--38. Springer, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. S. Byna, W. D. Gropp, X.-H. Sun, and R. Thakur. Improving the performance of MPI derived datatypes by optimizing memory-access cost. In IEEE International Conference on Cluster Computing (CLUSTER 2003), pages 412--419, 2003.Google ScholarGoogle ScholarCross RefCross Ref
  3. S. Byna, X.-H. Sun, R. Thakur, and W. Gropp. Automatic memory optimizations for improving MPI derived datatype performance. In Recent Advances in Parallel Virtual Machine and Message Passing Interface. 13th European PVM/MPI Users' Group Meeting, number 4192 in Lecture Notes in Computer Science, pages 238--246. Springer, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. T. H. Cormen, C. E. Leiserson, R. L. Rivest, and C. Stein. Introduction to Algorithms. MIT Press, third edition, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. W. D. Gropp, T. Hoefler, R. Thakur, and J. L. Träff. Performance expectations and guidelines for MPI derived datatypes: a first analysis. In Recent Advances in Message Passing Interface. 18th European MPI Users' Group Meeting, volume 6960 of Lecture Notes in Computer Science, pages 150--159. Springer, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. W. D. Gropp, E. Lusk, and D. Swider. Improving the performance of MPI derived datatypes. In Third MPI Developer's and User's Conference (MPIDC'99), pages 25--30, 1999.Google ScholarGoogle Scholar
  7. T. Hoefler and S. Gottlieb. Parallel zero-copy algorithms for fast fourier transform and conjugate gradient using MPI datatypes. In Recent Advances in Message Passing Interface. 17th European MPI Users' Group Meeting, volume 6305 of Lecture Notes in Computer Science, pages 132--141. Springer, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. F. Kjolstad, T. Hoefler, and M. Snir. Automatic datatype generation and optimization. In 17th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming (PPOPP), pages 327--328, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Q. Lu, J. Wu, D. K. Panda, and P. Sadayappan. Applying MPI derived datatypes to the NAS benchmarks: A case study. In 33rd International Conference on Parallel Processing Workshops (ICPP 2004 Workshops), pages 538--545, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. MPI Forum. MPI: A Message-Passing Interface Standard. Version 3.0, September 21st 2012. www.mpi-forum.org.Google ScholarGoogle Scholar
  11. R. Ross, N. Miller, and W. D. Gropp. Implementing fast and reusable datatype processing. In Recent Advances in Parallel Virtual Machine and Message Passing Interface. 10th European PVM/MPI Users' Group Meeting, volume 2840 of Lecture Notes in Computer Science, pages 404--413. Springer, 2003.Google ScholarGoogle ScholarCross RefCross Ref
  12. G. Santhanaraman, J. Wu, W. Huang, and D. K. Panda. Designing zero-copy message passing interface derived datatype communication over Infiniband: Alternative approaches and performance evaluation. International Journal on High Performance Computing Applications, 19(2):129--142, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. T. Schneider, F. Kjolstad, and T. Hoefler. MPI datatype processing using runtime compilation. In Recent Advances in the Message Passing Interface, 20th European MPI Users's Group Meeting (EuroMPI), pages 19--24, 2013. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. N. Tanabe and H. Nakajo. Introduction to acceleration for mpi derived datatypes using an enhancer of memory and network. In Recent Advances in Parallel Virtual Machine and Message Passing Interface. 15th European PVM/MPI Users' Group Meeting, volume 5205 of Lecture Notes in Computer Science, pages 324--325. Springer, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. J. L. Träff. Alternative, uniformly expressive and more scalable interfaces for collective communication in MPI. Parallel Computing, 38(1--2):26--36, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. J. L. Träff, R. Hempel, H. Ritzdorf, and F. Zimmermann. Flattening on the fly: efficient handling of MPI derived datatypes. In Recent Advances in Parallel Virtual Machine and Message Passing Interface. 6th European PVM/MPI Users' Group Meeting, volume 1697 of Lecture Notes in Computer Science, pages 109--116. Springer, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. J. L. Träff, A. Rougier, and S. Hunold. Implementing a classic: Zero-copy all-to-all communication with MPI datatypes. In 28th ACM International Conference on Supercomputing (ICS), pages 135--144, 2014. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. J. Wu, P. Wyckoff, and D. K. Panda. High performance implementation of MPI derived datatype communication over InfiniBand. In 18th International Parallel and Distributed Processing Symposium (IPDPS), page 14, 2004.Google ScholarGoogle Scholar

Index Terms

  1. Optimal MPI Datatype Normalization for Vector and Index-block Types

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in
            • Published in

              cover image ACM Other conferences
              EuroMPI/ASIA '14: Proceedings of the 21st European MPI Users' Group Meeting
              September 2014
              183 pages
              ISBN:9781450328753
              DOI:10.1145/2642769

              Copyright © 2014 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 9 September 2014

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • research-article
              • Research
              • Refereed limited

              Acceptance Rates

              EuroMPI/ASIA '14 Paper Acceptance Rate18of39submissions,46%Overall Acceptance Rate18of39submissions,46%

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader