GuideView

GuideView is a tool thatdisplays the performance details of a OpenMP program's parallel execution.

Statistical data is collapsed into relevant summaries that indicate where attention should be focused (for example, regions of the code where improvements in local performance will have the greatest impact on overall performance).

To gather programming statistics, use the -O3, -openmp, and -openmp_profile compiler options. This causes the linker to use libguide_stats.a instead of the default libguide.a. The following example demonstrates the compiler command line to produce a file named prog

     ifort -O -openmp -openmp_profile -o exe prog.f

To obtain profiling data, run the program, as in this example:

     export OMP_NUM_THREAD=8
     ./exe

When the program finishes, the file exe.gvs is produced:

Program execution time (in seconds):
cpu            :            0.07 sec
elapsed        :           69.48 sec
  serial       :            0.96 sec
  parallel     :           68.52 sec
cpu percent    :            0.10 %
end
Summary over all regions (has 4 threads):
# Thread                      #0       #1        #2       #3
  Sum Parallel        :   68.304   68.230   68.240    68.185
  Sum Imbalance       :    1.020    0.592    0.892     0.838
  Sum Critical Section:    0.011    0.022    0.021     0.024
  Sum Sequential      :    0.011  4.4e-03  4.6e-03   1.6e-03
  Min Parallel        : -5.1e-04 -5.1e-04  4.2e-04  -5.2e-04
  Max Parallel        :    0.090    0.090    0.090     0.090
  Max Imbalance       :    0.036    0.087    0.087     0.087
  Max Critical Section:  4.6e-05  9.8e-04  6.0e-05   9.8e-04
  Max Sequential      :  9.8e-04  9.8e-04  9.8e-04   9.8e-04
end