<?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: error: sycl::_V1::exception wrong loction in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1520239#M3262</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for posting in Intel Communities. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;We have reported this issue to the concerned development team. They are looking into your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Sep 2023 06:44:23 GMT</pubDate>
    <dc:creator>NoorjahanSk_Intel</dc:creator>
    <dc:date>2023-09-13T06:44:23Z</dc:date>
    <item>
      <title>error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518959#M3252</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have met a problem, the error code is:&lt;/P&gt;&lt;P&gt;There is an unhandled exception at 0x00007FFBDB684C3C (located in two_d.exe): Microsoft C++Exception: syncl::V1::exception, located at memory location 0x000000605F988C00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My GPU version: Intel(R) Iris(R) Xe Graphics&lt;/P&gt;&lt;P&gt;My Visual Studio Version: Microsoft Visual Studio Professional 2022 17.3.6&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, I do can run oneapi dpc++ example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Best&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;#include &amp;lt;vector&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;BR /&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;BR /&gt;using namespace cl::sycl;&lt;BR /&gt;std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; filter2d(const std::vector&amp;lt;double&amp;gt;&amp;amp; b, double a, const std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt;&amp;amp; x) {&lt;BR /&gt;int rows = x.size();&lt;BR /&gt;int cols = x[0].size();&lt;BR /&gt;std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; y(x.size(), std::vector&amp;lt;double&amp;gt;(x[0].size()));&lt;BR /&gt;auto z = b.size();&lt;BR /&gt;std::vector&amp;lt;double&amp;gt; flat_y(rows * cols);&lt;BR /&gt;std::vector&amp;lt;double&amp;gt; flat_x(rows * cols);&lt;BR /&gt;for (int i = 0; i &amp;lt; rows; i++)&lt;BR /&gt;{&lt;BR /&gt;for (int j = 0; j &amp;lt; cols; j++)&lt;BR /&gt;{&lt;BR /&gt;flat_x[i * cols + j] = x[i][j];&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;for (int i = 0; i &amp;lt; rows; i++)&lt;BR /&gt;{&lt;BR /&gt;for (int j = 0; j &amp;lt; cols; j++)&lt;BR /&gt;{&lt;BR /&gt;flat_y[i * cols + j] = y[i][j];&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;sycl::buffer&amp;lt;double, 1&amp;gt; b_buffer(b.data(), range&amp;lt;1&amp;gt;(rows));&lt;BR /&gt;sycl::buffer&amp;lt;double, 2&amp;gt; x_buffer(flat_x.data(), range&amp;lt;2&amp;gt;(rows, cols));&lt;BR /&gt;sycl::buffer&amp;lt;double, 2&amp;gt; y_buffer(flat_y.data(), range&amp;lt;2&amp;gt;(rows, cols));&lt;/P&gt;&lt;P&gt;sycl::queue q(sycl::gpu_selector_v);&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "Device name: " &amp;lt;&amp;lt; q.get_device().get_info&amp;lt;sycl::info::device::name&amp;gt;();&lt;/P&gt;&lt;P&gt;q.submit([&amp;amp;](sycl::handler&amp;amp; h) {&lt;BR /&gt;sycl::accessor x_acc(x_buffer, h);&lt;BR /&gt;sycl::accessor y_acc(y_buffer, h);&lt;BR /&gt;sycl::accessor b_acc(b_buffer, h);&lt;/P&gt;&lt;P&gt;auto out = sycl::stream(512, 256, h);&lt;BR /&gt;h.parallel_for(sycl::range{ static_cast&amp;lt;size_t&amp;gt;(rows), static_cast&amp;lt;size_t&amp;gt;(cols) }, [=](sycl::id&amp;lt;2&amp;gt; idx) {&lt;BR /&gt;int i = idx[0];&lt;BR /&gt;int j = idx[1];&lt;BR /&gt;y_acc[i][j] = 0.0;&lt;BR /&gt;for (int k = 0; k &amp;lt; z; k++)&lt;BR /&gt;{&lt;BR /&gt;if (i - k &amp;gt;= 0)&lt;BR /&gt;{&lt;BR /&gt;y_acc[i][j] = y_acc[i][j] + b_acc[k] * x_acc[(i - k)][j];&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;y_acc[i][j] = y_acc[i][j] / a;&lt;BR /&gt;});&lt;BR /&gt;}).wait();&lt;BR /&gt;sycl::host_accessor y_h(y_buffer);&lt;/P&gt;&lt;P&gt;for (int i = 0; i &amp;lt; rows; i++) {&lt;BR /&gt;for (int j = 0; j &amp;lt; cols; j++) {&lt;BR /&gt;y[i][j] = y_h[i][j];&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return y;&lt;BR /&gt;}&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;std::vector&amp;lt;double&amp;gt; b = { 1.0, 2.0, 1.0 };&lt;BR /&gt;double a = 1.0;&lt;BR /&gt;std::vector&amp;lt;std::vector&amp;lt;double&amp;gt;&amp;gt; x = {&lt;BR /&gt;{ 1.0, 2.0, 3.0 },&lt;BR /&gt;{ 4.0, 5.0, 6.0 },&lt;BR /&gt;{ 7.0, 8.0, 9.0 }&lt;BR /&gt;};&lt;BR /&gt;auto y = filter2d(b, a, x);&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "\n";&lt;BR /&gt;for (const auto&amp;amp; row : y) {&lt;BR /&gt;for (const auto&amp;amp; val : row) {&lt;BR /&gt;std::cout &amp;lt;&amp;lt; val &amp;lt;&amp;lt; " ";&lt;BR /&gt;}&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "\n";&lt;BR /&gt;}&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 07:00:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518959#M3252</guid>
      <dc:creator>lzy</dc:creator>
      <dc:date>2023-08-30T07:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518979#M3253</link>
      <description>&lt;P&gt;I can run this code on another PC with GPU: Intel(R) UHD Graphics 630, Visual Studio version: Microsoft Visual Studio Community 2022 17.6.5。&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 09:31:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518979#M3253</guid>
      <dc:creator>lzy</dc:creator>
      <dc:date>2023-08-30T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518995#M3254</link>
      <description>&lt;P&gt;but on Intel(R) UHD Graphics 730. it turns out that it has the same problem as on Iris.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 11:00:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1518995#M3254</guid>
      <dc:creator>lzy</dc:creator>
      <dc:date>2023-08-30T11:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1520239#M3262</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for posting in Intel Communities. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;We have reported this issue to the concerned development team. They are looking into your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 06:44:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1520239#M3262</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-13T06:44:23Z</dc:date>
    </item>
    <item>
      <title>Re:error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1524127#M3285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;Iris Xe Graphics  doesn't support double precision. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;We request you to change double to float data type so that the code works without any errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;We will get back to you regarding  &lt;/SPAN&gt;&lt;SPAN style="font-size: 14px;"&gt;Intel(R) UHD Graphics 730.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Noorjahan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Sep 2023 09:41:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1524127#M3285</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-15T09:41:56Z</dc:date>
    </item>
    <item>
      <title>Re:error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1528723#M3307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your patience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel(R) UHD Graphics 730 also does not have native support for double precision&lt;/P&gt;&lt;P&gt;So we suggest you to change the double data type to float so that the code will work as expected without any exceptions.&lt;/P&gt;&lt;P&gt; Please let us know if you still face any issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Sep 2023 05:45:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1528723#M3307</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-09-29T05:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1528746#M3308</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Intel(R) UHD Graphics 730 also does not have native support for double precision.&lt;/P&gt;
&lt;P&gt;You can change the double data type to float so that the code will work as expected without any exceptions or you can export the below variables so that the code will work without any errors with the double data type.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;export OverrideDefaultFP64Settings=1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;export IGC_EnableDPEmulation=1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Please let us know if you still face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Noorjahan.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 04:36:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1528746#M3308</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-06T04:36:32Z</dc:date>
    </item>
    <item>
      <title>Re:error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1531668#M3321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Oct 2023 06:05:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1531668#M3321</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-09T06:05:48Z</dc:date>
    </item>
    <item>
      <title>Re:error: sycl::_V1::exception wrong loction</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1534113#M3327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since we didn't hear back from you, we assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Noorjahan.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Oct 2023 11:33:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/error-sycl-V1-exception-wrong-loction/m-p/1534113#M3327</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-10-16T11:33:09Z</dc:date>
    </item>
  </channel>
</rss>

