Module 11: The “lastprivate” Clause
  Lecture 22: Intel Compilers and Threading Tools
 


Intel C++ Compiler Output View

Intel C++ Compiler Tips

  • The default compilation is with O2 (level-2 optimization) flag set.
  • The compiler autoparallelizes only if O2/O3 flag is set.
  • Remember to set -par-report2/3 flag while autoparallelization for a complete diagnosis report.
  • It is better to use O0 flag for beginners of OpenMP because some optimizations(code motion) can produce unexpected results.
  • Refer to man pages when in doubt.