<?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 openmp 3.0 collapse in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/openmp-3-0-collapse/m-p/857983#M2179</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a problem concerning the collapse feature of OpenMP 3.0.&lt;BR /&gt;When the iteration count of the outer loop gets one as in the following example, &lt;BR /&gt;no parallel speed-up is achievable.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]program test&lt;BR /&gt;   integer, parameter :: n=100000000&lt;BR /&gt;   integer :: i,j,k&lt;BR /&gt;   real(kind=8), dimension(n) :: d&lt;BR /&gt;&lt;BR /&gt;   k = n+1&lt;BR /&gt;   k = k-n&lt;BR /&gt;   ! k is now one&lt;BR /&gt;   print*,k&lt;BR /&gt;&lt;BR /&gt;!$omp parallel do collapse(2)&lt;BR /&gt;   do i=1,k&lt;BR /&gt;      do j=1,n&lt;BR /&gt;         d(j) = sqrt(abs(sin(cos(tan(real(j*i,kind=8))))))&lt;BR /&gt;      end do&lt;BR /&gt;   end do&lt;BR /&gt;!$omp end parallel do&lt;BR /&gt;&lt;BR /&gt;   print*,d(1)&lt;BR /&gt;&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem occurs with Intel Fortran 11.0&lt;BR /&gt;IBM and GNU Fortran do not seem to have this problem.&lt;BR /&gt;Am I doing something wrong, or is this a bug?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;F. Ahaba&lt;BR /&gt;&lt;BR /&gt;[/cpp]&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Jul 2009 21:59:12 GMT</pubDate>
    <dc:creator>fah10</dc:creator>
    <dc:date>2009-07-10T21:59:12Z</dc:date>
    <item>
      <title>openmp 3.0 collapse</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/openmp-3-0-collapse/m-p/857983#M2179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a problem concerning the collapse feature of OpenMP 3.0.&lt;BR /&gt;When the iteration count of the outer loop gets one as in the following example, &lt;BR /&gt;no parallel speed-up is achievable.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]program test&lt;BR /&gt;   integer, parameter :: n=100000000&lt;BR /&gt;   integer :: i,j,k&lt;BR /&gt;   real(kind=8), dimension(n) :: d&lt;BR /&gt;&lt;BR /&gt;   k = n+1&lt;BR /&gt;   k = k-n&lt;BR /&gt;   ! k is now one&lt;BR /&gt;   print*,k&lt;BR /&gt;&lt;BR /&gt;!$omp parallel do collapse(2)&lt;BR /&gt;   do i=1,k&lt;BR /&gt;      do j=1,n&lt;BR /&gt;         d(j) = sqrt(abs(sin(cos(tan(real(j*i,kind=8))))))&lt;BR /&gt;      end do&lt;BR /&gt;   end do&lt;BR /&gt;!$omp end parallel do&lt;BR /&gt;&lt;BR /&gt;   print*,d(1)&lt;BR /&gt;&lt;BR /&gt;end program test&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem occurs with Intel Fortran 11.0&lt;BR /&gt;IBM and GNU Fortran do not seem to have this problem.&lt;BR /&gt;Am I doing something wrong, or is this a bug?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;F. Ahaba&lt;BR /&gt;&lt;BR /&gt;[/cpp]&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2009 21:59:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/openmp-3-0-collapse/m-p/857983#M2179</guid>
      <dc:creator>fah10</dc:creator>
      <dc:date>2009-07-10T21:59:12Z</dc:date>
    </item>
  </channel>
</rss>

