<?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 Unfortunately there is no in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996751#M102570</link>
    <description>&lt;P&gt;Unfortunately there is no progress to report. The issue is unchanged with our latest 16.0 compiler release also. I pinged Development for some status.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2015 14:03:46 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2015-08-26T14:03:46Z</dc:date>
    <item>
      <title>Wrong code when using OpenMP collapse</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996746#M102565</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
	&amp;nbsp;i encountered a behavior I believe is a bug in ifort 14.0.2 which took me quite a lot of time to find.&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;
  implicit integer(a-z)
  nx = 10
  ny = 10
  nz = 10
  tnx = 2
  tny = 2
  tnz = 2


  !$omp parallel do collapse(3)
  do bk = 1, nz, tnz
   do bj = 1, ny, tny
    do bi = 1, nx, tnx
     do k = bk, min(bk+tnz-1,nz)
      do j = bj, min(bj+tny-1,ny)
       do i = bi, min(bi+tnx-1,nx)
        if (i==1.and.j==1.and.k==1) print *,"*"
       end do
      end do
     end do
    end do
   end do
  end do
  !$omp end parallel do
end&lt;/PRE&gt;

&lt;P&gt;This should print just one "*", but prints more of them&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;lada@meop37:~/f/testy/errors&amp;gt; ifort -openmp collapse.f90 
lada@meop37:~/f/testy/errors&amp;gt; ./a.out 
 *
 *
 *
 *
 *
lada@meop37:~/f/testy/errors&amp;gt; OMP_NUM_THREADS=1 ./a.out 
 *
 *
 *
 *
 *
lada@meop37:~/f/testy/errors&amp;gt; OMP_NUM_THREADS=10 ./a.out 
 *
 *
 *
 *
 *
lada@meop37:~/f/testy/errors&amp;gt; f90 -openmp collapse.f90 
f90: Warning: Optimizer level changed from 0 to 3 to support parallelized code.
lada@meop37:~/f/testy/errors&amp;gt; ./a.out 
 *
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2014 20:19:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996746#M102565</guid>
      <dc:creator>Vladimir_F_1</dc:creator>
      <dc:date>2014-04-19T20:19:06Z</dc:date>
    </item>
    <item>
      <title>Obviously, "private(i,j,k,bi</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996747#M102566</link>
      <description>&lt;P&gt;Obviously, "private(i,j,k,bi,bj,bk)" is missing there, but that doesn't change the behavior.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2014 20:47:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996747#M102566</guid>
      <dc:creator>Vladimir_F_1</dc:creator>
      <dc:date>2014-04-19T20:47:37Z</dc:date>
    </item>
    <item>
      <title>Hello Vladimir,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996748#M102567</link>
      <description>&lt;P&gt;Hello Vladimir,&lt;/P&gt;

&lt;P&gt;Thanks for reporting this. I'll investigate and follow up.&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 13:50:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996748#M102567</guid>
      <dc:creator>pbkenned1</dc:creator>
      <dc:date>2014-04-21T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Straightforward defect,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996749#M102568</link>
      <description>&lt;P&gt;Straightforward defect, reported to compiler engineering with tracking ID DPD200255773.&amp;nbsp; I'll keep this thread updated with any news.&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 14:40:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996749#M102568</guid>
      <dc:creator>pbkenned1</dc:creator>
      <dc:date>2014-04-21T14:40:37Z</dc:date>
    </item>
    <item>
      <title>Are there any news about this</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996750#M102569</link>
      <description>Are there any news about this problem? I still can reproduce it in intel/15.0.2.164 on the Archer supercomputer. It is very annoying.</description>
      <pubDate>Wed, 26 Aug 2015 13:01:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996750#M102569</guid>
      <dc:creator>Vladimir_F_1</dc:creator>
      <dc:date>2015-08-26T13:01:49Z</dc:date>
    </item>
    <item>
      <title>Unfortunately there is no</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996751#M102570</link>
      <description>&lt;P&gt;Unfortunately there is no progress to report. The issue is unchanged with our latest 16.0 compiler release also. I pinged Development for some status.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2015 14:03:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Wrong-code-when-using-OpenMP-collapse/m-p/996751#M102570</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-08-26T14:03:46Z</dc:date>
    </item>
  </channel>
</rss>

