<?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 I see that on 2019.5.281 it in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147254#M138972</link>
    <description>&lt;P&gt;I see that on 2019.5.281 it gives the wrong result with -O2 or -O3 but gives zero for -O0 and -O1. Looks like it may be caused by a conflict with openmp collapse and unrolling.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2019 16:32:15 GMT</pubDate>
    <dc:creator>Umar__Sait</dc:creator>
    <dc:date>2019-09-15T16:32:15Z</dc:date>
    <item>
      <title>ifort bug in OMP collapse since 2019 versions</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147248#M138966</link>
      <description>&lt;P&gt;Dear intel,&lt;/P&gt;&lt;P&gt;It seems you have a serious bug in your collapse openmp statements.&lt;/P&gt;&lt;P&gt;I did this small code:&lt;/P&gt;
&lt;PRE class="brush:fortran; class-name:dark; wrap-lines:false;"&gt;module fail_m
  implicit none

contains
  
  subroutine zero(n, Dk)
    integer :: n
    real :: Dk(2,n,n)

    integer :: i, j

!$OMP parallel do default(shared), collapse(2), private(i,j)
    do j = 1, n
      do i = 1, n
        Dk(1,i,j) = 0.
        Dk(2,i,j) = 0.
      end do
    end do
!$OMP end parallel do
  end subroutine zero

end module fail_m

program test
  use fail_m
  integer, parameter :: n = 200
  real :: Dk(2,n,n)

  call random_number(Dk)
  call zero(n, Dk)

  print '(f10.4)', sum(Dk)
end program test
  
&lt;/PRE&gt;

&lt;P&gt;and ran for multiple different versions.&lt;/P&gt;
&lt;P&gt;In all cases the program should print out 0.0000. However, for all 2019.X versions it prints something else.&lt;/P&gt;
&lt;P&gt;Here is a complete list of the versions I have tested (and whether they failed or succeeded).&lt;/P&gt;
&lt;P&gt;Running intel&lt;BR /&gt;Success: 2013.0.028&lt;BR /&gt;Success: 2013.1.039&lt;BR /&gt;Success: 2013.1.046&lt;BR /&gt;Success: 2015.0.090&lt;BR /&gt;Success: 2015.1.133&lt;BR /&gt;Success: 2015.3.187&lt;BR /&gt;Success: 2016.1.0.423501&lt;BR /&gt;Success: 2016.2.0&lt;BR /&gt;Success: 2017.0.035&lt;BR /&gt;Success: 2017.1.043&lt;BR /&gt;Success: 2017.4.196&lt;BR /&gt;Success: 2017.7.065&lt;BR /&gt;Success: 2018.0.033&lt;BR /&gt;Success: 2018.1.038&lt;BR /&gt;Success: 2018.2.046&lt;BR /&gt;Success: 2018.3.051&lt;BR /&gt;Failed: 2019.0.117 = 29939.7344&lt;BR /&gt;Failed: 2019.1.144 = 29939.7344&lt;BR /&gt;Failed: 2019.2.187 = 29939.7344&lt;BR /&gt;Failed: 2019.3.199 = 29939.7344&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need not say how severe this is :(&lt;/P&gt;
&lt;P&gt;/ Nick&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:27:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147248#M138966</guid>
      <dc:creator>nickpapior</dc:creator>
      <dc:date>2019-08-20T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Bump this thread!</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147249#M138967</link>
      <description>&lt;P&gt;Bump this thread!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:17:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147249#M138967</guid>
      <dc:creator>nickpapior</dc:creator>
      <dc:date>2019-09-03T07:17:29Z</dc:date>
    </item>
    <item>
      <title>I can confirm this, ifort 17</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147250#M138968</link>
      <description>&lt;P&gt;I can confirm this, ifort 17 and 18 work, 19.0 and 19.1 don't. Did you report this to the Intel Online Support Center?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:30:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147250#M138968</guid>
      <dc:creator>Juergen_R_R</dc:creator>
      <dc:date>2019-09-03T07:30:19Z</dc:date>
    </item>
    <item>
      <title>Yeah, I have just reported</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147251#M138969</link>
      <description>&lt;P&gt;Yeah, I have just reported this: #04329792&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 07:35:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147251#M138969</guid>
      <dc:creator>nickpapior</dc:creator>
      <dc:date>2019-09-03T07:35:12Z</dc:date>
    </item>
    <item>
      <title>Hello and thank you for</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147252#M138970</link>
      <description>&lt;P&gt;Hello and thank you for reporting this issue. I will contact the development team right away.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2019 11:39:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147252#M138970</guid>
      <dc:creator>Cedric_A_Intel</dc:creator>
      <dc:date>2019-09-04T11:39:22Z</dc:date>
    </item>
    <item>
      <title>This also fails on 2019u5!</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147253#M138971</link>
      <description>&lt;P&gt;This also fails on 2019u5!&lt;/P&gt;&lt;P&gt;Failed: 2019.5.281&amp;nbsp;= 29939.7344&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:57:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147253#M138971</guid>
      <dc:creator>nickpapior</dc:creator>
      <dc:date>2019-09-13T06:57:50Z</dc:date>
    </item>
    <item>
      <title>I see that on 2019.5.281 it</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147254#M138972</link>
      <description>&lt;P&gt;I see that on 2019.5.281 it gives the wrong result with -O2 or -O3 but gives zero for -O0 and -O1. Looks like it may be caused by a conflict with openmp collapse and unrolling.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 16:32:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-bug-in-OMP-collapse-since-2019-versions/m-p/1147254#M138972</guid>
      <dc:creator>Umar__Sait</dc:creator>
      <dc:date>2019-09-15T16:32:15Z</dc:date>
    </item>
  </channel>
</rss>

