<?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 Re:DPC++ crash inside llvm code (libOclCpuBackEnd)... in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193835#M594</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Glad to know that your issue is resolved.&lt;/P&gt;
&lt;P&gt;Thanks for your suggestion, we will forward it to the concerned team.&lt;/P&gt;
&lt;P&gt;As your issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;
&lt;P&gt;Have a Good day.!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Goutham&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 08:10:29 GMT</pubDate>
    <dc:creator>GouthamK_Intel</dc:creator>
    <dc:date>2020-07-21T08:10:29Z</dc:date>
    <item>
      <title>DPC++ crash inside llvm code (libOclCpuBackEnd) in runtime</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193309#M579</link>
      <description>&lt;P&gt;The problem described in title. Minimal reproduce example is attached. File with building instruction, full backtrace and system description is attached too.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 16:58:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193309#M579</guid>
      <dc:creator>sirgienko</dc:creator>
      <dc:date>2020-07-17T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ crash inside llvm code (libOclCpuBackEnd)...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193622#M588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As per the code provided by you, we observed that you are working on a buffer data of length 100.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;const size_t ARRAY_SIZE = 100;
int* data = new int[ARRAY_SIZE];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas you are launching the kernel with 50*50 threads using range with 2 dimensions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;range&amp;lt;2&amp;gt; num_items{ARRAY_SIZE / 2, ARRAY_SIZE / 2};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are launching threads in 2d, the range of idx.get(0) and idx.get(1) are {0,49}. So the possible range of index variable is {0,539} which exceeds the max size of our buffer i.e 100.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;size_t index = idx.get(0) * 10 + idx.get(1);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please try running your code with the below modification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;range&amp;lt;2&amp;gt; num_items{ARRAY_SIZE / 10, ARRAY_SIZE / 10};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know if the provided solution helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 13:06:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193622#M588</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-07-20T13:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re:DPC++ crash inside llvm code (libOclCpuBackEnd)...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193625#M590</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Goutham&lt;/P&gt;
&lt;P&gt;Yes, you right, this is a code error with range size.&lt;/P&gt;
&lt;P&gt;But, i think, it will be great, especially for debug builds, if the compiler won't crash deep inside dpc++ runtime inside, but instead fall on failed assert of line &lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;buf2_w[index] = buf1_r[index];
&lt;/LI-CODE&gt;
&lt;P&gt;But this is just suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 13:06:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193625#M590</guid>
      <dc:creator>sirgienko</dc:creator>
      <dc:date>2020-07-20T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re:DPC++ crash inside llvm code (libOclCpuBackEnd)...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193835#M594</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Glad to know that your issue is resolved.&lt;/P&gt;
&lt;P&gt;Thanks for your suggestion, we will forward it to the concerned team.&lt;/P&gt;
&lt;P&gt;As your issue has been resolved and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&lt;/P&gt;
&lt;P&gt;Have a Good day.!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:10:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/DPC-crash-inside-llvm-code-libOclCpuBackEnd-in-runtime/m-p/1193835#M594</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-07-21T08:10:29Z</dc:date>
    </item>
  </channel>
</rss>

