<?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: Is it a bug of Intel Fortran Compiler 11? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850834#M65864</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hi &lt;BR /&gt;&lt;BR /&gt;Which version has this "bug"?&lt;BR /&gt;&lt;BR /&gt;Abhi&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Oct 2009 17:52:05 GMT</pubDate>
    <dc:creator>abhimodak</dc:creator>
    <dc:date>2009-10-09T17:52:05Z</dc:date>
    <item>
      <title>Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850829#M65859</link>
      <description>&lt;PRE&gt;[sectionBody]&lt;BR /&gt;Hello, &lt;BR /&gt; &lt;BR /&gt;I am developing a complicated CFD code. During the development, I found that the codes generated by &lt;BR /&gt;Intel Fortran 10 and 11 produced different results, and the code from 11 seems obvious wrong. This puzzled &lt;BR /&gt;me for some time. Recently, I was able to reproduce the problem in the following simple code. &lt;BR /&gt; &lt;BR /&gt;The expected output from the code is &lt;BR /&gt;   1.  1.  1.  1.  1.  1.  1.  1.&lt;BR /&gt;  -2. -2. -2. -2. -2. -2. -2. -2.&lt;BR /&gt;  -3. -3. -3. -3. -3. -3. -3. -3.&lt;BR /&gt; &lt;BR /&gt;However, the output with compiler 11 is&lt;BR /&gt;&lt;BR /&gt;  -1. -1. -1. -1. -1. -1. -1. -1.&lt;BR /&gt; -2. -2. -2. -2. -2. -2. -2. -2.&lt;BR /&gt;  3.  3.  3.  3.  3.  3.  3.  3.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;The problem occurs for win32 and x64 with or without optimization. Is it a bug of the compiler or a bug of our coding.&lt;BR /&gt; &lt;BR /&gt;The compiler I have the problem is 11.0.3451.2005.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Haifeng&lt;BR /&gt; &lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;&lt;PRE name="code" class="cpp"&gt;module sd_data_mod

    type mydattype
        real,pointer    :: fld(:,:,:,:)
    end type mydattype
    
    type(mydattype)     :: mt

end module sd_data_mod

program main

    use sd_data_mod

    allocate(mt%fld(2,2,2,3))
    mt%fld(:,:,:,1) = 1
    mt%fld(:,:,:,2) = 2
    mt%fld(:,:,:,3) = 3

    call view(mt%fld(:,:,:,2:3),2)
    write(*,'(100f4.0)') mt%fld(:,:,:,1)
    write(*,'(100f4.0)') mt%fld(:,:,:,2)
    write(*,'(100f4.0)') mt%fld(:,:,:,3)
    
! expected correct output are:
!   1.  1.  1.  1.  1.  1.  1.  1.
!  -2. -2. -2. -2. -2. -2. -2. -2.
!  -3. -3. -3. -3. -3. -3. -3. -3.

end program main

subroutine view(fld,ns)
    use sd_data_mod
    integer     :: ns
    real        :: fld(2,2,2,ns)
    
    fld = -fld
    
end subroutine view[/sectionBody]&lt;/PRE&gt;
-----------------------------------------------------------------------&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Oct 2009 03:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850829#M65859</guid>
      <dc:creator>haifeng2009</dc:creator>
      <dc:date>2009-10-09T03:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850830#M65860</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
With 11.1.046 32-bit I have your expected result. with all options I can think of.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 05:29:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850830#M65860</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-10-09T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850831#M65861</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
11.0.3451.2005 is not the compiler version - that's the Visual Studio integration version. Please download and install 11.1.046 and try your program again.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 11:00:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850831#M65861</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-10-09T11:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850832#M65862</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;11.0.3451.2005 is not the compiler version - that's the Visual Studio integration version. Please download and install 11.1.046 and try your program again.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thenhere is the compiler version I am using: 11.0.061.</description>
      <pubDate>Fri, 09 Oct 2009 13:02:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850832#M65862</guid>
      <dc:creator>haifeng2009</dc:creator>
      <dc:date>2009-10-09T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850833#M65863</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;With 11.1.046 32-bit I have your expected result. with all options I can think of.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;With w_cprof_p_11.1.046, I have the right result. It seems that this is a compiler bug in the old version, and It has been fixed in the current version. Thanks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 14:52:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850833#M65863</guid>
      <dc:creator>haifeng2009</dc:creator>
      <dc:date>2009-10-09T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850834#M65864</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hi &lt;BR /&gt;&lt;BR /&gt;Which version has this "bug"?&lt;BR /&gt;&lt;BR /&gt;Abhi&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2009 17:52:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850834#M65864</guid>
      <dc:creator>abhimodak</dc:creator>
      <dc:date>2009-10-09T17:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it a bug of Intel Fortran Compiler 11?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850835#M65865</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/285698"&gt;abhimodak&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hi &lt;BR /&gt;&lt;BR /&gt;Which version has this "bug"?&lt;BR /&gt;&lt;BR /&gt;Abhi&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I am using w_cprof_p_11.0.061 which gives the error. So at least this version has the problem, and maybe other versions before and after this vresion.&lt;BR /&gt;&lt;BR /&gt;Haifeng</description>
      <pubDate>Sat, 10 Oct 2009 02:00:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Is-it-a-bug-of-Intel-Fortran-Compiler-11/m-p/850835#M65865</guid>
      <dc:creator>haifeng2009</dc:creator>
      <dc:date>2009-10-10T02:00:38Z</dc:date>
    </item>
  </channel>
</rss>

