<?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 You will need to add the same in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/OpenMP-Accelerator-Model-signal-11-SIGSEGV/m-p/1105687#M70399</link>
    <description>&lt;P&gt;You will need to add the same map clauses for A, B and C on the inner "omp target". That ensures that&amp;nbsp;the pointers&amp;nbsp;A, B, C are updated on the device.&lt;/P&gt;

&lt;P&gt;Note that the actual data transfer of A, B and C is only done once, by the outer "target data"&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2017 17:53:19 GMT</pubDate>
    <dc:creator>Rajiv_D_Intel</dc:creator>
    <dc:date>2017-02-27T17:53:19Z</dc:date>
    <item>
      <title>OpenMP Accelerator Model - signal 11 (SIGSEGV)</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-Accelerator-Model-signal-11-SIGSEGV/m-p/1105686#M70398</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;currently I am working with OpenMP Accelerator Model and I would like use OpenMP offload for executing my application on KNC coprocessor. In my application I use #omp target data region to ensuring data reusing.&amp;nbsp;However, as a result, during execution of my application I get following error: offload error: process on the device 0 was terminated by signal 11 (SIGSEGV).&amp;nbsp;I am trying to reslove my problem, but I don't know how to do it. The way in which I use OpenMP #target constructs in my application presents simple code bellow.&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;omp.h&amp;gt;
using namespace std;

int main()
{    
    const int size = 100000;
    double* A = (double*) _mm_malloc(size * sizeof (double), 64);
    double* B = (double*) _mm_malloc(size * sizeof (double), 64);
    double* C = (double*) _mm_malloc(size * sizeof (double), 64);
    
    for(int i=0; i&amp;lt;size; ++i)
    {
        A&lt;I&gt; = B&lt;I&gt; = i;
        C&lt;I&gt; = 0.0;
    }
    
    
    #pragma omp target data map(to:A[0:size]) map(to:B[0:size]) map(to:C[0:size])
    {
        for(int ts=0; ts&amp;lt;100; ++ts)
        {
            #pragma omp target
            {
                #pragma omp parallel for
                for(int i=0; i&amp;lt;size; ++i)
                {
                    C&lt;I&gt; = B&lt;I&gt; * A&lt;I&gt;;
                }
            }
        }
    }
    
    _mm_free(A);
    _mm_free(B);
    _mm_free(C);
    
    return 0;
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;I compile my code using icpc 17.0.1 with -O3 and -qopenmp flags.&amp;nbsp;What can be problem, and how to reslove it?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 15:54:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-Accelerator-Model-signal-11-SIGSEGV/m-p/1105686#M70398</guid>
      <dc:creator>H__Kamil</dc:creator>
      <dc:date>2017-02-27T15:54:14Z</dc:date>
    </item>
    <item>
      <title>You will need to add the same</title>
      <link>https://community.intel.com/t5/Software-Archive/OpenMP-Accelerator-Model-signal-11-SIGSEGV/m-p/1105687#M70399</link>
      <description>&lt;P&gt;You will need to add the same map clauses for A, B and C on the inner "omp target". That ensures that&amp;nbsp;the pointers&amp;nbsp;A, B, C are updated on the device.&lt;/P&gt;

&lt;P&gt;Note that the actual data transfer of A, B and C is only done once, by the outer "target data"&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 17:53:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/OpenMP-Accelerator-Model-signal-11-SIGSEGV/m-p/1105687#M70399</guid>
      <dc:creator>Rajiv_D_Intel</dc:creator>
      <dc:date>2017-02-27T17:53:19Z</dc:date>
    </item>
  </channel>
</rss>

