Intel® Fortran Compiler for Linux* - Deeply-nested modules can cause slow compilation

Nested modules, via nested USE statements, can sometimes degrade compile-time performance. The complexity of the nested modules can determine when the compile-time performance degradation is observed. While Intel continues to make improvements in this area, some users are still reporting slow compilation of very complex nested module use patterns.

As a work-around reduce the depth of nested modules. Here are some suggestions to accomplish this task:

  • Don't put USE statements for more modules than are needed.
  • Don't USE modules via multiple paths.
  • Combine smaller "header file" modules into a single, larger module.
For more complete information about compiler optimizations, see our Optimization Notice.

1 comment

anonymous's picture

I am facing this exact problem in compiling a program with large number of nested modules (nested use statements). Is there a fix to it, other than the suggested ones??


Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.