Download ScaMPI User's guide

Transcript
Table of contents
Chapter 1 Introduction...............................................................................................7
1.1 Purpose of the ScaMPI User’s guide.........................................................................7
1.2 Scope of the ScaMPI User’s guide.............................................................................7
1.3 Who should read this guide.......................................................................................7
1.4 Acronyms and abbreviations ....................................................................................8
1.5 Terms and conventions .............................................................................................8
1.6 Typographic conventions...........................................................................................9
Chapter 2 Getting started ....................................................................................... 11
2.1 The first example.....................................................................................................11
2.1.1 Setting up your BASH environment ........................................................11
2.1.2 C-source of a Hello-world MPI program ..................................................12
2.1.3 Fortran-source of a Hello-world MPI program ........................................12
2.1.4 Compiling...................................................................................................12
2.1.5 Linking.......................................................................................................13
2.1.6 Running .....................................................................................................13
2.2 MPI test programs...................................................................................................13
2.2.1 A producer-consumer MPI test program .................................................13
2.2.2 A bandwidth MPI test program................................................................14
2.2.3 A bidirectional MPI test program. ...........................................................14
Chapter 3 Using ScaMPI ......................................................................................... 15
3.1 Setting up a ScaMPI environment .........................................................................15
3.1.1 The Unix ScaMPI environment................................................................16
3.1.2 The Unix on Windows NT ScaMPI environment ....................................17
3.2 Compiling .................................................................................................................17
3.2.1 Compiler support.......................................................................................17
3.2.2 Unix compile flags .....................................................................................18
3.2.3 Windows NT compile flags........................................................................18
3.3 Linking .....................................................................................................................19
3.3.1 Linking on Unix ........................................................................................19
3.3.2 Linking on Windows NT ...........................................................................19
3.4 Running MPI programs...........................................................................................20
3.4.1 Mpimon ......................................................................................................20
3.4.1.1 Basic usage..................................................................................20
3.4.1.2 Advanced usage...........................................................................20
3.5 Debugging ScaMPI applications .............................................................................25
3.5.1 Debugging with TotalView .......................................................................25
3.5.2 Debugging with gdb ..................................................................................28
3.6 Profiling ScaMPI applications ................................................................................29
ScaMPI User’s Guide Version 1.9.0
3