<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re:Very slow module compilation with O2 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1675115#M175230</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/215366"&gt;@vanderwb&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks for reporting this. I don't know yet when we can fix this, but if you like to modify the code, I guess replacing the assignments with function calls and do a single assignment in each call would fix the slow compilation. (not tested that myself for the moment though) or compile this unit with -O1&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 14 Mar 2025 17:17:46 GMT</pubDate>
    <dc:creator>TobiasK</dc:creator>
    <dc:date>2025-03-14T17:17:46Z</dc:date>
    <item>
      <title>Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1674815#M175217</link>
      <description>&lt;P&gt;We're working with our modeling communities to get their codes working with ifx - the classic compilers have been a mainstay of our software builds for many years. Our CESM (climate) model software engineering group is looking at this now and finding a few issues. The one I'd like to report here revolves around compiling a relatively small Fortran module from one model component. I have attached the source file along with a Makefile in a tarball.&lt;/P&gt;&lt;P&gt;The issue is that compilation with &lt;STRONG&gt;ifx&lt;/STRONG&gt; is much much slower than with&amp;nbsp;&lt;STRONG&gt;ifort&lt;/STRONG&gt;. This comparison uses 2024.2.1, but the &lt;STRONG&gt;ifx&lt;/STRONG&gt; performance is similar with 2025:&lt;/P&gt;&lt;PRE&gt;Running: make ifort ; sleep 1 - Please wait...&lt;BR /&gt;ifort -c -ftz -assume realloc_lhs -fp-model source -O2 -no-fma mo_rxt_rates_conv.F90&lt;BR /&gt;ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows* and Linux* support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message.&lt;BR /&gt;derecho3 used memory in task 0: 1686MiB (+4MiB overhead). ExitStatus: 0. Signal: 0&lt;BR /&gt;&lt;BR /&gt;real 4m13.924s&lt;BR /&gt;user 4m12.256s&lt;BR /&gt;sys 0m0.576s&lt;/PRE&gt;&lt;P&gt;vs:&lt;/P&gt;&lt;PRE&gt;Running: make ifx ; sleep 1 - Please wait...&lt;BR /&gt;ifx -c -ftz -assume realloc_lhs -fp-model source -O2 -no-fma mo_rxt_rates_conv.F90&lt;BR /&gt;derecho3 used memory in task 0: 7821MiB (+4MiB overhead). ExitStatus: 0. Signal: 0&lt;BR /&gt;&lt;BR /&gt;real 59m19.807s&lt;BR /&gt;user 58m18.265s&lt;BR /&gt;sys 0m9.225s&lt;/PRE&gt;&lt;P&gt;So roughly 4 minutes for this module compared to 59 minutes. There are likely some changes that can be made to the code to improve both times, and we will pursue this, but this is a large degradation from ifort, so some improvement on the compiler side would be welcome too.&lt;/P&gt;&lt;P&gt;I'd also like to point out the significant difference in memory footprint - 1686MiB using &lt;STRONG&gt;ifort&lt;/STRONG&gt; vs&amp;nbsp;7821MiB with&amp;nbsp;&lt;STRONG&gt;ifx&lt;/STRONG&gt;. We have seen similar results with a number of codes, and this is making it hard to allow our users to use OneAPI on our front-end login nodes. Again, some improvement here would be welcome.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 19:53:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1674815#M175217</guid>
      <dc:creator>vanderwb</dc:creator>
      <dc:date>2025-03-13T19:53:54Z</dc:date>
    </item>
    <item>
      <title>Re:Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1675115#M175230</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/215366"&gt;@vanderwb&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks for reporting this. I don't know yet when we can fix this, but if you like to modify the code, I guess replacing the assignments with function calls and do a single assignment in each call would fix the slow compilation. (not tested that myself for the moment though) or compile this unit with -O1&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Mar 2025 17:17:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1675115#M175230</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2025-03-14T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1684588#M175555</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/215366"&gt;@vanderwb&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again for reporting this!&lt;/P&gt;
&lt;P&gt;I think it looks better now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ time make ifx&lt;/P&gt;
&lt;P&gt;ifx -c -ftz -assume realloc_lhs -fp-model source -O2 -no-fma mo_rxt_rates_conv.F90&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;real 1m13.592s&lt;/P&gt;
&lt;P&gt;user 1m13.031s&lt;/P&gt;
&lt;P&gt;sys 0m0.510s&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The fix is part of IFX 2025.2&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 13:26:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1684588#M175555</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2025-04-22T13:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1684602#M175556</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/245425"&gt;@TobiasK&lt;/a&gt;- thanks for the update. That looks great! I'll be sure to test on our end once 2025.2 is released and confirm.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 15:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1684602#M175556</guid>
      <dc:creator>vanderwb</dc:creator>
      <dc:date>2025-04-22T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1706943#M176505</link>
      <description>&lt;P&gt;Hi, we are having the same or a similar problem with ICX, where ICL compiled just fine, however ICX takes far to long. I had found this thread before the summer, so was eagerly waiting for 2025.2. However it does not seem to have fixed the issue for us.&lt;/P&gt;&lt;P&gt;(Still takes about 30 minutes instead of 2 minutes.)&lt;/P&gt;&lt;P&gt;Was the fix that was implemented done only for IFX or also for ICX? If so, how can I test to check if this is the same problem or not?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 12:39:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1706943#M176505</guid>
      <dc:creator>BjörnTR</dc:creator>
      <dc:date>2025-08-01T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Very slow module compilation with O2</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1706968#M176506</link>
      <description>&lt;P&gt;&lt;FONT color="#FF0000"&gt;Compiling with Intel(R) Visual Fortran Compiler XE 13.1.0.149 [Intel(R) 64]...&lt;/FONT&gt;&lt;BR /&gt;ifort /nologo /O2 /module:"x64\Release\\" /object:"x64\Release\\" /Fd"x64\Release\vc90.pdb" /libs:static /threads /c /Qvc9 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\\bin\amd64" "B:\INTEL_FORTRAN_FORO\SLOW_COMP_2013\mo_rxt_rates_conv.F90"&lt;/P&gt;&lt;P&gt;SLOW_COMP_2013 - 0 error(s), 0 warning(s)&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Real Time 7 min. 20 seg.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Compiling with Intel® Fortran Compiler 2025.2.0 [Intel(R) 64]...&lt;/FONT&gt;&lt;BR /&gt;ifx /nologo /O2 /module:"x64\Release\\" /object:"x64\Release\\" /libs:dll /threads /c /Qlocation,link,"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX64\x64" /Qm64 "B:\INTEL_FORTRAN_FORO\SLOW_COMP\mo_rxt_rates_conv.F90"&lt;BR /&gt;SLOW_COMP - 0 error(s), 0 warning(s)&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Real Time 0 min. 52 seg.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------&lt;BR /&gt;AMD Rizen 5 3600 6 core 3593 Mhz&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 14:46:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Very-slow-module-compilation-with-O2/m-p/1706968#M176506</guid>
      <dc:creator>garraleta_fortran</dc:creator>
      <dc:date>2025-08-01T14:46:59Z</dc:date>
    </item>
  </channel>
</rss>

