Tutorial

  • 03/26/2021
  • Public Content

Improving Performance with Interprocedural Optimization

The compiler may be able to perform additional optimizations if it is able to optimize across source line boundaries. These may include, but are not limited to, function inlining. This is enabled with the
/Qipo
option.
Rebuild
the program using the
/Qipo
option to enable interprocedural optimization.
Select
Optimization [Intel C++]
Interprocedural Optimization
Multi-file(/Qipo)
.
Note that the vectorization
messages now appear at the point of inlining in
driver.f90
(line 69). You should see 4 optimization notes describing which loops were inlined from
matvec.f90
.
Now, run the executable and record the execution time.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.