Developer Guide and Reference

Contents

Profile Guided Optimization dialog box

This topic has information on the following dialog boxes:
  • Profile Guided Optimization (PGO)
    dialog box
  • Application Invocations
    dialog box
  • Edit Command
    dialog box
  • Command
    dialog box

Profile Guided Optimization dialog box

To access the
Profile Guided Optimization
dialog box, choose
Tools
Intel Compiler
Profile Guided Optimization
.
Use the
Profile Guided Optimization
dialog box to set the options for profile guided optimization.
Phase 1 - Instrument:
This phase produces an instrumented object file for the profile guided optimization. The command line compiler option for each optimization instrument you choose appears in
Compiler Options
.
  • Enable Function Ordering in the optimized application:
    Select this checkbox to enable ordering of static and extern routines using profile information. This optimization specifies the order in which the linker should link the functions of your application. This optimization can improve your application performance by improving code locality and by reducing paging.
  • Enable Static Data Layout in the optimized application:
    Select this checkbox to enable ordering of static global data items based on profiling information. This optimization specifies the order in which the linker should link global data of your program. This optimization can improve application performance by improving the locality of static global data, reduce paging of large data sets, and improve data cache use.
  • Instrument with guards for threaded application:
    Select this checkbox to produce an instrumented object file that includes the collection of PGO data on applications that use a high level of parallelism.
Selecting an option produces a static profile information file (
.spi
), but also increases the time needed to do a parallel build.
Deselect the checkbox to skip this phase to save time running profile guided optimization. When you skip this phase, you use the existing profile information when running profile guided optimization. For example, you may want to skip this phase when you change the code to fix a bug and the fix doesn't affect the architecture of the project.
Phase 2 - Run Instrumented Application(s):
This phase runs the instrumented application produced in the previous phase as well as other applications in the
Applications Invocations
dialog box. To add a new application or edit an existing application in the list, click
Applications Invocations
.
Deselect the checkbox to skip this phase to save time running profile guided optimization. When you skip this phase, you do not run the applications in the list when running profile guided optimization. For example, you might want to skip this phase when you change the code to fix a bug and the fix doesn't affect the architecture of the project.
Phase 3 - Optimize with Profile Data:
This phase performs the profile guided optimization.
Deselect the checkbox to skip this phase.
Profile Directory: