<?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 We need more details about in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091978#M65632</link>
    <description>&lt;P&gt;We need more details about what appears in the clause_set(s) and variables used in&amp;nbsp;the program. As a start, could you enable OFFLOAD_REPORT=3 and capture the output for the SegV case and post that in a reply, or if needed send privately to me via the Send Author A Message link.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2016 17:02:54 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2016-08-10T17:02:54Z</dc:date>
    <item>
      <title>Offloading By a Single Thread In An OpenMP Region</title>
      <link>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091976#M65630</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Let's assume we have 2 code sections, all of which have a do loop inside them. Let these sections be sectA and sectB. Please consider the following code -&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;!$omp parallel do clause_set_1 num_threads(16)
  sect A

!dir$ offload target(mic:0) clause_set_2
  !$omp parallel do clause_set_3 num_threads(240)
    sectB
!dir$ end offload
&lt;/PRE&gt;

&lt;P&gt;The above code works as we would like it to work.&lt;/P&gt;

&lt;P&gt;My intention is to have a 16-thread openMP parallel region which would contain the offload directives. Inside the parallel region, only the master thread takes care of the offload, with the rest 15 threads waiting at the end of the parallel region. Like this -&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;!$omp parallel do clause_set_1 num_threads(16)
  sect A

!$omp parallel clause_set_4 num_threads(16)

 !$omp master
   !dir$ offload target(mic:0) clause_set_2
      !$omp parallel do clause_set_3 num_threads(240)   //Comment 1
        sectB
   !dir$ end offload
 !$omp end master

!$omp end parallel&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Now this clause_set_4 has only the following - default(firstprivate).&lt;/P&gt;

&lt;P&gt;Ideally it should've worked fine, as everything is firstprivate, and hence the master thread will have a initialized copy of all the required variables for sending to the Xeon Phi. And since the 1st code fragment works correctly, second should have also worked. But I am getting segmentation fault. Please note that I get segmentation fault after the threads on the Xeon Phi are spawned (ie, Till Comment 1, it's working). What can be the possible issue? Do I need to add something from clause_set_3 to the clause_set_4? Or is there something else which I've missed?&lt;/P&gt;

&lt;P&gt;Also, please note that when the clause_set_4 has only the following - default(shared), then the code stops running (but doesn't get killed) after the offloading process has started.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:52:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091976#M65630</guid>
      <dc:creator>Amlesh_K_</dc:creator>
      <dc:date>2016-08-10T08:52:34Z</dc:date>
    </item>
    <item>
      <title>I'm going to move this to the</title>
      <link>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091977#M65631</link>
      <description>&lt;P&gt;I'm going to move this to the Xeon Phi forum, as it seems more related to that topic than Fortran.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 12:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091977#M65631</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2016-08-10T12:51:14Z</dc:date>
    </item>
    <item>
      <title>We need more details about</title>
      <link>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091978#M65632</link>
      <description>&lt;P&gt;We need more details about what appears in the clause_set(s) and variables used in&amp;nbsp;the program. As a start, could you enable OFFLOAD_REPORT=3 and capture the output for the SegV case and post that in a reply, or if needed send privately to me via the Send Author A Message link.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 17:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offloading-By-a-Single-Thread-In-An-OpenMP-Region/m-p/1091978#M65632</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2016-08-10T17:02:54Z</dc:date>
    </item>
  </channel>
</rss>

