<?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 problem compiling with -O3  in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745222#M3443</link>
    <description>Without your USE file, who can try to compile?&lt;BR /&gt;Which compiler version? Which OS? Does it use excessive memory?&lt;BR /&gt;It is usual to have to set -O1 for code resembling this.</description>
    <pubDate>Wed, 24 Mar 2010 12:31:59 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2010-03-24T12:31:59Z</dc:date>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745221#M3442</link>
      <description>The intel fortran compiler doesn't seem able to compile the attached file elements.f90 with -O3 option.&lt;BR /&gt;&lt;BR /&gt;If you try:&lt;BR /&gt;&lt;BR /&gt;ifort -O3 -c elements.f90&lt;BR /&gt;&lt;BR /&gt;the compiler never complete the operation. &lt;BR /&gt;&lt;BR /&gt;No problem with -O2 or -O0 or with other fortran compilers.&lt;BR /&gt;&lt;BR /&gt;Corrado</description>
      <pubDate>Wed, 24 Mar 2010 11:06:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745221#M3442</guid>
      <dc:creator>ccorrado71</dc:creator>
      <dc:date>2010-03-24T11:06:20Z</dc:date>
    </item>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745222#M3443</link>
      <description>Without your USE file, who can try to compile?&lt;BR /&gt;Which compiler version? Which OS? Does it use excessive memory?&lt;BR /&gt;It is usual to have to set -O1 for code resembling this.</description>
      <pubDate>Wed, 24 Mar 2010 12:31:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745222#M3443</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-24T12:31:59Z</dc:date>
    </item>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745223#M3444</link>
      <description>I attach a new version of elements.f90 without 'USE strutil'.&lt;BR /&gt;Compiler version: 11.1.069_intel64&lt;BR /&gt;OS: Linux 2.6.31-20-generic (x86_64) Distro: Ubuntu 9.10 (karmic)&lt;BR /&gt;Memory: 6128MB (1390MB used)&lt;BR /&gt;&lt;BR /&gt;-O1 is OK but why can not I compile with -O3.&lt;BR /&gt;&lt;BR /&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2010 14:05:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745223#M3444</guid>
      <dc:creator>ccorrado71</dc:creator>
      <dc:date>2010-03-24T14:05:41Z</dc:date>
    </item>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745224#M3445</link>
      <description>Various limits in the compiler are set so as to disable optimizations which are about to hang. Evidently, your case has found a weakness in both 32- and 64-bit 11.1 compilers.&lt;BR /&gt;When the compiler finds it has to cut back on optimization, it would usually go all the way back to -O0, so setting -O1 is preferable.</description>
      <pubDate>Wed, 24 Mar 2010 15:03:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745224#M3445</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-24T15:03:24Z</dc:date>
    </item>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745225#M3446</link>
      <description>&lt;P&gt;Theres nothing unreasonable about the code, but it does include a large number of implied do loops (more than 600  all those constructors) in a single routine. O3 enables aggressive optimizations; I think the compiler is trying to merge many of these loops to improve runtime performance. Im not sure yet whether the compiler is truly stuck or (more likely) just taking a very long time; well investigate.&lt;/P&gt;
&lt;P&gt;There are various ways to work around this; one would be to split the initialization routine load_chemical_elements into two parts. When I did this, it compiled in just under 4 minutes  still rather slow, but not catastrophic.&lt;/P&gt;
&lt;P&gt;However, this looks like an initialization routine that would be called only once, so there is really no need to compile it at O3, the default of O2 should be fine.&lt;/P&gt;
&lt;P&gt;Well look into ways of restraining the compiler from trying to fuse together an unreasonably large number of loops.&lt;/P&gt;
&lt;P&gt;Thanks for bringing this to our attention.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2010 00:01:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745225#M3446</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2010-03-25T00:01:16Z</dc:date>
    </item>
    <item>
      <title>problem compiling with -O3</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745226#M3447</link>
      <description>This issue has been addressed in version 12 of the Intel compiler. The compiler no longer tries to fuse together large numbers of short trip count loops such as these. On the system I tested, your code compiled in about 3 minutes.&lt;BR /&gt; The 12.0 compiler may be obtained from &lt;A href="http://registrationcenter.intel.com"&gt;http://registrationcenter.intel.com&lt;/A&gt; as part of Intel Composer XE for Linux.</description>
      <pubDate>Wed, 03 Aug 2011 18:10:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/problem-compiling-with-O3/m-p/745226#M3447</guid>
      <dc:creator>Martyn_C_Intel</dc:creator>
      <dc:date>2011-08-03T18:10:24Z</dc:date>
    </item>
  </channel>
</rss>

