<?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 !$OMP SECTIONS in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958463#M5261</link>
    <description>&lt;DIV&gt;The OpenMP portion of the IVF manual has:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;FONT color="#008080"&gt;SECTIONS directives must be encountered by all threads in a team or by none at all. It must also be encountered in the same order by all threads in a team.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Just how does one control the ordering of the threads (re: same order by all threads)? Is this a misprint?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Dec 2005 05:54:26 GMT</pubDate>
    <dc:creator>jim_dempsey</dc:creator>
    <dc:date>2005-12-08T05:54:26Z</dc:date>
    <item>
      <title>!$OMP SECTIONS</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958463#M5261</link>
      <description>&lt;DIV&gt;The OpenMP portion of the IVF manual has:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;FONT color="#008080"&gt;SECTIONS directives must be encountered by all threads in a team or by none at all. It must also be encountered in the same order by all threads in a team.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Just how does one control the ordering of the threads (re: same order by all threads)? Is this a misprint?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Dec 2005 05:54:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958463#M5261</guid>
      <dc:creator>jim_dempsey</dc:creator>
      <dc:date>2005-12-08T05:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: !$OMP SECTIONS</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958464#M5262</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hi Jim,&lt;/P&gt;
&lt;P&gt;The OpenMP 2.5 specification doesn't say anything about an order dependence on the sections directive. This looks like a documentation error. I'll report it to the IVF team.&lt;/P&gt;
&lt;P&gt;Henry&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2005 09:13:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958464#M5262</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2005-12-09T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: !$OMP SECTIONS</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958465#M5263</link>
      <description>&lt;P&gt;Jim -&lt;/P&gt;
&lt;P&gt;I don't think this has to do with the threads or their order of execution. &lt;/P&gt;
&lt;P&gt;This sounds like it is disallowing jumps into and out of the SECTIONS code ornesting some SECTIONS within a conditional. Thus, the following code is not legal:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;!$OMP SECTIONS
!$OMP SECTION
    some stuff
    IF (some_condition) THEN
!$OMP SECTIONS
!$OMP SECTION
       conditional_stuff
!$OMP SECTION
       other_conditional_stuff
!OMP END SECTIONS
    ENDIF

!$OMP SECTION
    other_some_stuff_without_if
!$OMP END SECTIONS&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;In this example, not all threads would encounter the nested SECTIONS which violates the requirement inthe first sentence. (After writing this code, I realize that the nesting in superflous if the conditional was in a parallel region and if some threads would evaluate .TRUE. while others evalaute .FALSE. Nested SECTIONS, without a conditional, would also violate the requirements.)&lt;/P&gt;
&lt;P&gt;As for encounter order, this just means that the same set of SECTIONS must be executed by each thread. I suppose this could be violated by some conditional code or selection logic.&lt;/P&gt;
&lt;P&gt;--clay&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2005 06:06:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/OMP-SECTIONS/m-p/958465#M5263</guid>
      <dc:creator>ClayB</dc:creator>
      <dc:date>2005-12-23T06:06:25Z</dc:date>
    </item>
  </channel>
</rss>

