Download TAU User Guide - Computer and Information Science
Transcript
Table of Contents TAU preface .............................................................................................................. x I. Tau User Guide ........................................................................................................ 1 1. Tau Instrumentation ......................................................................................... 3 1.1. Types of Instrumenation ......................................................................... 3 1.2. Dynamic instrumentation through library pre-loading ................................... 3 1.3. TAU scripted compilation ....................................................................... 3 1.3.1. Instrumenation ........................................................................... 3 1.3.2. Compiler Based Instrumentation .................................................... 4 1.3.3. Source Based Instrumentation ....................................................... 4 1.3.4. Options to TAU compiler scripts ................................................... 4 1.4. Selectively Profiling an Application .......................................................... 5 1.4.1. Custom Profiling ........................................................................ 5 2. Profiling ........................................................................................................ 7 2.1. Running the Application ......................................................................... 7 2.2. Reducing Performance Overhead with TAU_THROTTLE ............................ 7 2.3. Profiling each event callpath .................................................................... 7 2.4. Using Hardware Counters for Measurement ............................................... 8 3. Tracing ........................................................................................................ 10 3.1. Generating Event Traces ....................................................................... 10 4. Analyzing Parallel Applications ........................................................................ 11 4.1. Text summary .................................................................................... 11 4.2. ParaProf ............................................................................................ 11 4.3. Jumpshot ........................................................................................... 12 5. Quick Reference ............................................................................................ 13 6. Some Common Application Scenario ................................................................ 14 6.1. Q. What routines account for the most time? How much? ............................ 14 6.2. Q. What loops account for the most time? How much? ............................... 14 6.3. Q. What MFlops am I getting in all loops? ............................................... 15 6.4. Q. Who calls MPI_Barrier() Where? ....................................................... 16 6.5. Q. How do I instrument Python Code? .................................................... 17 6.6. Q. What happens in my code at a given time? ........................................... 17 6.7. Q. How does my application scale? ......................................................... 18 II. ParaProf - User's Manual ........................................................................................ 20 7. Introduction .................................................................................................. 22 7.1. Using ParaProf from the command line ................................................... 22 7.2. Supported Formats .............................................................................. 23 7.3. Command line options ......................................................................... 23 8. Views and Sub-Views ..................................................................................... 25 8.1. To Create a (Sub-)Views ...................................................................... 25 9. Profile Data Management ................................................................................ 27 9.1. ParaProf Manager Window ................................................................... 27 9.2. Loading Profiles .................................................................................. 27 9.3. Database Interaction ............................................................................ 28 9.4. Creating Derived Metrics ...................................................................... 28 9.5. Main Data Window ............................................................................. 28 10. 3-D Visualization ......................................................................................... 30 10.1. Triangle Mesh Plot ............................................................................ 30 10.2. 3-D Bar Plot ..................................................................................... 30 10.3. 3-D Scatter Plot ................................................................................. 31 10.4. 3-D Topology Plot ............................................................................. 31 10.5. 3-D Commication Matrix .................................................................... 33 11. Thread Based Displays .................................................................................. 34 11.1. Thread Bar Graph .............................................................................. 34 iv