Intel® Fortran Compiler 17.0 Developer Guide and Reference
Enables or disables prefetch insertion optimization. Option -qopt-prefetch is the replacement option for -opt-prefetch, which is deprecated.
Linux and macOS: | -qopt-prefetch[=n] -qno-opt-prefetch |
Windows: | /Qopt-prefetch[:n] /Qopt-prefetch- |
n |
Is the level of software prefetching optimization desired. Possible values are:
|
-qno-opt-prefetch |
Prefetch insertion optimization is disabled. |
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 the Intel® Xeon Phi™ coprocessor x100 product family (formerly code name Knights Corner), option -qopt-prefetch=3 (Linux* and OS X*) and /Qopt-prefetch:3 (Windows*) are enabled by default if option O2 or higher is set. To disable prefetching at these optimization levels, specify option -qno-opt-prefetch or /Qopt-prefetch-.
This option enables prefetching when higher optimization levels are specified.
Visual Studio: Optimization > Prefetch Insertion
Eclipse: None
Xcode: Optimization > Enable Prefetch Insertion
None