• 09/03/2020
  • Public Content

Profile-Guided Optimization (PGO)

Profile-guided Optimization (PGO) improves application performance by re-ordering code layout to reduce instruction-cache problems, shrinking code size, and reducing branch mispredictions. PGO provides information to the compiler about areas of an application that are most frequently executed so the compiler is able to be more selective and specific in optimizing the application.
PGO consists of three phases or steps:
  1. Instrument the program: build the program using the compiler flag
    -prof-gen or /Qprof-gen
  2. Run the instrumented executable to gather profiling data with various input data or workloads
  3. Re-build the program with the profiling data using flag
    -prof-use or /Qprof-use
  • Profile-guided optimization (PGO) samples
  • Click on the sample name to see an in-depth description and source code.
    Sample Name
    Program Domain/Area
    Description
    Target Platforms
    OSes
    Computational Fluid Dynamics
    Simulate the flow of fluid in a container using the Smoothed-Particle Hydrodynamics model. Usage of Intel® C++ compiler PGO optimization Usage of Intel® Cilk™ Plus: Array Notation
    Desktop
    Windows*; Linux*; OS X*
1

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserverd for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804