OpenACC Tutorial - Profiling

Revision as of 18:13, 2 June 2016 by Sergueev (talk | contribs)
Other languages:


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:

  1. Where time is being spent (Hotspots)
  2. How the code is performing
  3. 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".