Download PGI Profiler User Guide
Transcript
TABLE OF CONTENTS Preface.................................................................................................................................................................................. vii Intended Audience.............................................................................................................................................................vii Supplementary Documentation......................................................................................................................................... vii Compatibility and Conformance to Standards.................................................................................................................. vii Organization...................................................................................................................................................................... viii Conventions........................................................................................................................................................................ ix Terminology......................................................................................................................................................................... x Related Publications............................................................................................................................................................x System Requirements......................................................................................................................................................... x Chapter 1. Getting Started....................................................................................................................................................1 1.1. Basic Profiling..............................................................................................................................................................1 1.2. Methods of Collecting Performance Data................................................................................................................... 2 1.2.1. Instrumentation-based Profiling........................................................................................................................... 2 1.2.2. Sample-based Profiling........................................................................................................................................3 1.3. Choose Profile Method................................................................................................................................................4 1.4. Collect Performance Data........................................................................................................................................... 4 1.4.1. Profiling Output File............................................................................................................................................. 4 1.4.2. Using System Environment Variables................................................................................................................. 5 1.4.3. Profiling with Hardware Event Counters..............................................................................................................5 1.5. Profiler Invocation and Initialization.............................................................................................................................5 1.6. Application Tuning....................................................................................................................................................... 5 1.7. Troubleshooting........................................................................................................................................................... 6 1.7.1. Prerequisite: Java Virtual Machine...................................................................................................................... 6 1.7.2. Slow Network....................................................................................................................................................... 6 Chapter 2. Using PGPROF................................................................................................................................................... 7 2.1. PGPROF Tabs and Icons Overview........................................................................................................................... 8 2.2. Profile Navigation.........................................................................................................................................................9 2.3. HotSpot Navigation....................................................................................................................................................13 2.4. Sorting Profile Data................................................................................................................................................... 13 2.5. Compiler Feedback....................................................................................................................................................14 2.5.1. Special Feedback Messages.............................................................................................................................15 2.6. Profiling Parallel Programs........................................................................................................................................15 2.6.1. Profiling Multi-threaded Programs..................................................................................................................... 16 2.6.2. Profiling MPI Programs......................................................................................................................................17 2.7. Scalability Comparison.............................................................................................................................................. 19 2.8. Profiling Resource Utilization with Hardware Event Counters.................................................................................. 20 2.8.1. Profiling with Hardware Event Counters (Linux Only)....................................................................................... 21 2.8.2. Analyzing Event Counter Profiles......................................................................................................................21 2.9. Profiling GPU Programs............................................................................................................................................ 22 2.9.1. Profiling OpenACC Programs............................................................................................................................22 PGI Profiler User Guide ii