OpenACC Tutorial - Profiling
Learning objectives
- Understand what profiler is
- Understand how to use PGPROF profiler.
- Understand how the code is performing .
- Understand where to focus your time and re-write most time consuming routines
- Learn how to ...
What is profiling ?
Gathering a Profile
Why would one needs to gather a profile of a code ? Because it's the only way to understand:
- Where time is being spent (Hotspots)
- How the code is performing
- Where to focus your time
What is so important about the hotspots of the code ? The Amdahl's law says that "Parallelizing the most time-consuming (i.e. the hotspots) routines will have the most impact".