User and Reference Guide for the Intel® Fortran Compiler 14.0

opt-prefetch, Qopt-prefetch

Enables or disables prefetch insertion optimization.

Syntax

Linux OS and OS X:

-opt-prefetch[=n]

-no-opt-prefetch

Windows OS:

/Qopt-prefetch[:n]

/Qopt-prefetch-

Arguments

n

Is the level of software prefetching optimization desired. Possible values are:

0

Disables software prefetching. This is the same as specifying -no-opt-prefetch (Linux* OS and OS X*) or /Qopt-prefetch- (Windows* OS).

1 to 4

Enables different levels of software prefetching. If you do not specify a value for n, the default is 2. Use lower values to reduce the amount of prefetching.

Default

-no-opt-prefetch
or/Qopt-prefetch-

Prefetch insertion optimization is disabled.

Description

This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.

On Intel® 64 architecture, targeting Intel® MIC Architecture, option [Q]opt-prefetch=3 is enabled by default if option O2 or higher is set. To disable prefetching at these optimization levels, specify option -no-opt-prefetch or /Qopt-prefetch-.

This option enables prefetching when higher optimization levels are specified.

IDE Equivalent

Windows: Optimization > Prefetch Insertion

Linux: None

OS X: Optimization > Enable Prefetch Insertion

Alternate Options

None

See Also


Submit feedback on this help topic