Escali 4.4 manual Profiling with Scali MPI Connect

Page 14

3.2.6 Notes on compiling with MPI-2 features

23

3.3

Running Scali MPI Connect programs

23

3.3.1 Naming conventions

23

3.3.2 mpimon - monitor program

24

3.3.3 mpirun - wrapper script

27

3.4

Suspending and resuming jobs

28

3.5

Running with dynamic interconnect failover capabilities

28

3.6

Running with tcp error detection - TFDR

28

3.7

Debugging and profiling

29

3.7.1 Debugging with a sequential debugger

29

3.7.2 Built-in-tools for debugging

30

3.7.3 Assistance for external profiling

30

3.7.4 Debugging with Etnus Totalview

30

3.8

Controlling communication resources

31

3.8.1 Communication resources on DAT-devices

31

3.9

Good programming practice with SMC

32

3.9.1 Matching MPI_Recv() with MPI_Probe()

32

3.9.2 Using MPI_Isend(), MPI_Irecv()

32

3.9.3 Using MPI_Bsend()

32

3.9.4 Avoid starving MPI-processes - fairness

32

3.9.5 Unsafe MPI programs

33

3.9.6 Name space pollution

33

3.10 Error and warning messages

33

3.10.1 User interface errors and warnings

33

3.10.2 Fatal errors

33

3.11 Mpimon options

34

3.11.1 Giving numeric values to mpimon

35

Chapter 4 Profiling with Scali MPI Connect

37

4.1

Example

37

4.2

Tracing

38

4.2.1 Using Scali MPI Connect built-in trace

38

4.2.2 Features

40

4.3

Timing

41

4.3.1 Using Scali MPI Connect built-in timing

41

4.4

Using the scanalyze

43

4.4.1 Analysing all2all

43

4.5

Using SMC's built-inCPU-usage functionality

45

Chapter 5 Tuning SMC to your application

47

5.1

Tuning communication resources

47

5.1.1 Automatic buffer management

47

5.2

How to optimize MPI performance

48

5.2.1 Performance analysis

48

5.2.2 Using processor-power to poll

48

5.2.3 Reorder network traffic to avoid conflicts

48

5.3

Benchmarking

48

Scali MPI Connect Release 4.4 Users Guide

2

Image 14
Contents Scali MPI ConnectTM Users Guide Acknowledgement Copyright 1999-2005 Scali AS. All rights reservedScali Bronze Software Certificate Grant of License MaintenanceII Software License Terms Commencement Sub-license and distribution SupportLicense Manager Export RequirementsSCALI’s Obligations LICENSEE’s ObligationsTitle to Intellectual Property Rights TransferWarranty of Title and Substantial Performance Compliance with LicensesLimitation on Remedies and Liabilities Scali MPI Connect Release 4.4 Users Guide ViiProprietary Information MiscellaneousGoverning Law Scali MPI Connect Release 4.4 Users Guide Table of contents Profiling with Scali MPI Connect Appendix a Example MPI code Scali MPI Connect Release 4.4 Users Guide Chapter Scali MPI Connect product contextSupport Scali mailing lists SMC FAQ SMC release documentsProblem reports Platforms supportedLicensing How to read this guideAcronyms and abbreviations FeedbackNIC GUI style font Terms and conventionsTypographic conventions Typographic conventions Description of Scali MPI Connect Scali MPI Connect componentsSMC network devices Shared Memory Device Direct Access Transport DATNetwork devices Ethernet Devices3.2 DET Using detctlUsing detstat 4.1 GM MyrinetInfiniband 5.1 IBChannel buffer Communication protocols on DAT-devices6 SCI Transporter protocol Inlining protocolEagerbuffering protocol Zerocopy protocol MPI-2 FeaturesSupport for other interconnects Scali MPI Connect Release 4.4 Users Guide MPI-2 Features Scali MPI Connect environment variables Setting up a Scali MPI Connect environmentCompiling and linking RunningCompiler support Linker flagsRunning Scali MPI Connect programs Naming conventionsIdentity of parallel processes Mpimon monitor programBasic usage Standard output Controlling options to mpimonStandard input Program specHow to provide options to mpimon Network optionsMpirun wrapper script Mpirun usageRunning with dynamic interconnect failover capabilities Running with tcp error detection TfdrSuspending and resuming jobs Part partDebugging and profiling Debugging with a sequential debuggerAssistance for external profiling Using built-in segment protect violation handlerBuilt-in-tools for debugging Debugging with Etnus TotalviewChannelinlinethreshold size to set threshold for inlining Controlling communication resourcesCommunication resources on DAT-devices Good programming practice with SMC Using MPIIsend, MPIIrecvUsing MPIBsend Matching MPIRecv with MPIProbeFatal errors Error and warning messagesUser interface errors and warnings Unsafe MPI programsMpimon options Postfix Giving numeric values to mpimonPrefix Scali MPI Connect Release 4.4 Users Guide Profiling with Scali MPI Connect ExampleUsing Scali MPI Connect built-in trace TracingAbsRank MPIcallcommNamerankcall-dependant-parameters where +relSecs S eTime whereFeatures ExampleUsing Scali MPI Connect built-in timing TimingMPIcallDcallsDtimeDfreq TcallsTtimeTfreq Commrank send to toworldTocommonFields where Using the scanalyzeCommrank recv from fromworldFromcommonFields Count!avrLen!zroLen!inline!eager!transporter! whereFor timing Using SMCs built-in CPU-usage functionality This produces the following reportScali MPI Connect Release 4.4 Users Guide Tuning communication resources Automatic buffer managementCaching the application program on the nodes How to optimize MPI performanceBenchmarking First iteration is very slowCollective operations Memory consumption increase after warm-upFinding the best algorithm Image contrast enhancement Appendix aPrograms in the ScaMPItst package Scali MPI Connect Release 4.4 Users Guide File format OriginalAppendix B When things do not work troubleshootingWhy does not my program start to run? General problems Why can I not start mpid?Why does my program terminate abnormally? Per node installation of Scali MPI Connect Appendix CInstall Scali MPI Connect for Myrinet Install Scali MPI Connect for TCP/IPInstall Scali MPI Connect for Direct Ethernet ExampleInstall and configure SCI management software Install Scali MPI Connect for InfinibandInstall Scali MPI Connect for SCI License optionsScali kernel drivers Uninstalling SMCTroubleshooting Network providers Troubleshooting 3rdparty DAT providers Troubleshooting the GM providerScali MPI Connect Release 4.4 Users Guide Grouping Appendix D Bracket expansion and groupingBracket expansion Scali MPI Connect Release 4.4 Users Guide Appendix E Related documentationScali MPI Connect Release 4.4 Users Guide List of figures Scali MPI Connect Release 4.4 Users Guide Index Transporter protocolSSP