Enables the compiler and linker to generate information and adjust optimization for Hardware Profile-Guided Optimization (HWPGO).
Linux: | -fprofile-sample-generate[=level] |
Windows: | /fprofile-sample-generate[:level] |
level |
Specifies which actions the compiler should perform. Possible values are:
|
OFF |
The compiler and linker do not generate information for HWPGO. |
This option enables the compiler and linker to generate information and adjust optimization for Hardware Profile-Guided Optimization (HWPGO).
On Windows, the following cautions apply when using this option:
The LLD linker is required and you must specify /profile-sample-generate as a link option if the LLD linker is not invoked by icx/icpx.
Do not specify option /Ob0 or /Ob1 with option /fprofile-sample-generate or /fprofile-sample-use because it will disable inlining.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
None