<?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 Differences found in executable from code compiled with v11.1 and  v12.0 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778718#M26474</link>
    <description>I have moved to XE composer 2011 and found out that the results from my code are differents from the one computed with v11.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem comes from the new compiler optimization : &lt;BR /&gt;&lt;BR /&gt;v11.1, no optimization : OK&lt;BR /&gt;v11.1, /O3 : OK&lt;BR /&gt;v11.1, no optimization : OK&lt;BR /&gt;V12.0, /O3         : Wrong&lt;BR /&gt;&lt;BR /&gt;The involved loop is the one below, a "write" statement correct the problem.&lt;BR /&gt;&lt;BR /&gt;do ispeed=1,nspeed&lt;BR /&gt; if (ispeed == num_speed_temp(inss,iroute)) then&lt;BR /&gt; prob_speed(ispeed, inss,iroute)= prob_speed(ispeed, inss,iroute) + a&lt;BR /&gt; !write(*,*) !necessary to get correct results&lt;BR /&gt; end if&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone knows how to avoid such error and still benefit of some optimization for the other part of the code ?</description>
    <pubDate>Wed, 24 Nov 2010 14:56:45 GMT</pubDate>
    <dc:creator>Gerald_Duff</dc:creator>
    <dc:date>2010-11-24T14:56:45Z</dc:date>
    <item>
      <title>Differences found in executable from code compiled with v11.1 and  v12.0</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778718#M26474</link>
      <description>I have moved to XE composer 2011 and found out that the results from my code are differents from the one computed with v11.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem comes from the new compiler optimization : &lt;BR /&gt;&lt;BR /&gt;v11.1, no optimization : OK&lt;BR /&gt;v11.1, /O3 : OK&lt;BR /&gt;v11.1, no optimization : OK&lt;BR /&gt;V12.0, /O3         : Wrong&lt;BR /&gt;&lt;BR /&gt;The involved loop is the one below, a "write" statement correct the problem.&lt;BR /&gt;&lt;BR /&gt;do ispeed=1,nspeed&lt;BR /&gt; if (ispeed == num_speed_temp(inss,iroute)) then&lt;BR /&gt; prob_speed(ispeed, inss,iroute)= prob_speed(ispeed, inss,iroute) + a&lt;BR /&gt; !write(*,*) !necessary to get correct results&lt;BR /&gt; end if&lt;BR /&gt;end do&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone knows how to avoid such error and still benefit of some optimization for the other part of the code ?</description>
      <pubDate>Wed, 24 Nov 2010 14:56:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778718#M26474</guid>
      <dc:creator>Gerald_Duff</dc:creator>
      <dc:date>2010-11-24T14:56:45Z</dc:date>
    </item>
    <item>
      <title>Differences found in executable from code compiled with v11.1 a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778719#M26475</link>
      <description>We would need to see the actual program and be able to compile and run it to comment. Often a problem that "goes away" when a WRITE is added is caused by a reference to uninitialized memory. The actual error can be unrelated to the code you added.</description>
      <pubDate>Wed, 24 Nov 2010 15:44:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778719#M26475</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-11-24T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Differences found in executable from code compiled with v11.1 a</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778720#M26476</link>
      <description>Thanks for the answer, it certainly had something to do with uninitialized memroy, changing a fixed size array into an allocatable array have solved the problem.</description>
      <pubDate>Thu, 25 Nov 2010 09:10:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Differences-found-in-executable-from-code-compiled-with-v11-1/m-p/778720#M26476</guid>
      <dc:creator>Gerald_Duff</dc:creator>
      <dc:date>2010-11-25T09:10:07Z</dc:date>
    </item>
  </channel>
</rss>

