Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fprofile-sample-use

Enables the compiler and linker to use information for Hardware Profile-Guided Optimization (HWPGO). This is an experimental feature.

Syntax

Linux:

-fprofile-sample-use=profile-file

-fno-profile-sample-use

Windows:

/fprofile-sample-use:profile-file

/fno-profile-sample-use

Arguments

profile-file

Is the profile data file generated by llvm-profgen.

Default

fno-profile-sample-use

Profiling information is not used during optimization.

Description

This option enables the compiler and linker to use information for Hardware Profile-Guided Optimization (HWPGO). It is an experimental feature.

NOTE:

On Windows, do not specify option /Ob0 or /Ob1 with option /fprofile-sample-use or /fprofile-sample-generate because it will disable inlining.

NOTE:

This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.

IDE Equivalent

None

Alternate Options

None