<?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 Hi, in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165613#M257</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;We are working on it&amp;nbsp;and will get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 13:26:44 GMT</pubDate>
    <dc:creator>GouthamK_Intel</dc:creator>
    <dc:date>2020-01-02T13:26:44Z</dc:date>
    <item>
      <title>image::write causing exception</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165612#M256</link>
      <description>&lt;P&gt;I am trying to write data into an image buffer using image::write but it is causing an exception.&lt;/P&gt;&lt;P&gt;Input image img2 is a simple uchar4 rgba image and I just want to copy this image to new buffer (*out). If I comment out&amp;nbsp;image3Ptr.write, I do not get an exception&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;uint4 *out = (uint4 *)calloc(fWidth * fHeight, sizeof(uint4));

cl::sycl::image&amp;lt;2&amp;gt; img2(second, cl::sycl::image_channel_order::rgba,
	cl::sycl::image_channel_type::unsigned_int8, range&amp;lt;2&amp;gt;(sWidth, sHeight));
cl::sycl::image&amp;lt;2&amp;gt; img3(out, cl::sycl::image_channel_order::rgba,
	cl::sycl::image_channel_type::unsigned_int8, range&amp;lt;2&amp;gt;(sWidth, sHeight));
myQueue.submit([&amp;amp;](handler &amp;amp;cgh)
{
	accessor&amp;lt;uint4, 2, access::mode::read, access::target::image&amp;gt; image2Ptr(img2, cgh);
	accessor&amp;lt;uint4, 2, access::mode::write, access::target::image&amp;gt; image3Ptr(img3, cgh);
	cgh.parallel_for&amp;lt;class nn_search1&amp;gt;(
		nd_range&amp;lt;2&amp;gt;(range&amp;lt;2&amp;gt;(fWidth, fHeight), range&amp;lt;2&amp;gt;(1, 1)),
		[=](nd_item&amp;lt;2&amp;gt; item)
	{
		auto idx = item.get_global_id(0);
		auto idy = item.get_global_id(1);
		uint4 v = image2Ptr.read((int2)(idx, idy));
		image3Ptr.write((int2)(idx, idy), v);
	});
});
&lt;/PRE&gt;

&lt;P&gt;Exception details:&amp;nbsp;Exception thrown at 0x00007FFA776BBACF (igc64.dll) in PatchMatch.exe: 0xC0000005: Access violation writing location 0x000000000000001A.&lt;/P&gt;
&lt;P&gt;Visual studio takes me to handler.hpp, line 407&amp;nbsp;&lt;/P&gt;
&lt;P&gt;detail::EventImplPtr Event = detail::Scheduler::getInstance().addCG(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::move(CommandGroup), std::move(MQueue));&lt;/P&gt;
&lt;P&gt;and stack trace shows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PatchMatch.exe!cl::sycl::handler::finalize() Line 407&amp;nbsp;&amp;nbsp; &amp;nbsp;C++&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PatchMatch.exe!cl::sycl::detail::queue_impl::submit_impl&amp;lt;`lambda at ..\\source\\PM_SYCL.cpp:531:21'&amp;gt;(nn_search_sycl1::&amp;lt;unnamed-tag&amp;gt; cgf, std::shared_ptr&amp;lt;cl::sycl::detail::queue_impl&amp;gt; self) Line 212&amp;nbsp;&amp;nbsp; &amp;nbsp;C++&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PatchMatch.exe!cl::sycl::detail::queue_impl::submit&amp;lt;`lambda at ..\\source\\PM_SYCL.cpp:531:21'&amp;gt;(nn_search_sycl1::&amp;lt;unnamed-tag&amp;gt; cgf, std::shared_ptr&amp;lt;cl::sycl::detail::queue_impl&amp;gt; self) Line 106&amp;nbsp;&amp;nbsp; &amp;nbsp;C++&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PatchMatch.exe!cl::sycl::queue::submit&amp;lt;`lambda at ..\\source\\PM_SYCL.cpp:531:21'&amp;gt;(nn_search_sycl1::&amp;lt;unnamed-tag&amp;gt; cgf) Line 87&amp;nbsp;&amp;nbsp; &amp;nbsp;C++&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:40:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165612#M256</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-01-02T11:40:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165613#M257</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;We are working on it&amp;nbsp;and will get back to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:26:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165613#M257</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-01-02T13:26:44Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165614#M258</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We've observed that your '&lt;STRONG&gt;img3&lt;/STRONG&gt;' size of&amp;nbsp;'&lt;STRONG&gt;(sWidth, sHeight)',&lt;/STRONG&gt;&amp;nbsp;doesn't match that of the '&lt;STRONG&gt;out&lt;/STRONG&gt;'&amp;nbsp;size of '(&lt;STRONG&gt;fWidth, fHeight&lt;/STRONG&gt;)', along with kernel size of '(&lt;STRONG&gt;fWidth, fHeight&lt;/STRONG&gt;)'. Try running your code after&amp;nbsp;appropriate changes.&lt;/P&gt;&lt;P&gt;Hope this resolves your issue.&amp;nbsp;If not, please provide us with the entire source code and steps to reproduce,&amp;nbsp;so&amp;nbsp;that we can investigate further into the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Teja Alaghari&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 09:47:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165614#M258</guid>
      <dc:creator>SriVardham_A_Intel</dc:creator>
      <dc:date>2020-01-03T09:47:46Z</dc:date>
    </item>
    <item>
      <title>Quote:Alaghari, Sri</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165615#M259</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Alaghari, Sri Vardhamana Maha Teja (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We've observed that your '&lt;STRONG&gt;img3&lt;/STRONG&gt;' size of&amp;nbsp;'&lt;STRONG&gt;(sWidth, sHeight)',&lt;/STRONG&gt;&amp;nbsp;doesn't match that of the '&lt;STRONG&gt;out&lt;/STRONG&gt;'&amp;nbsp;size of '(&lt;STRONG&gt;fWidth, fHeight&lt;/STRONG&gt;)', along with kernel size of '(&lt;STRONG&gt;fWidth, fHeight&lt;/STRONG&gt;)'. Try running your code after&amp;nbsp;appropriate changes.&lt;/P&gt;&lt;P&gt;Hope this resolves your issue.&amp;nbsp;If not, please provide us with the entire source code and steps to reproduce,&amp;nbsp;so&amp;nbsp;that we can investigate further into the issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Teja Alaghari&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually those both values are same. Anyways here is complete DPC++&amp;nbsp;VS2017 project that shows the error.&lt;/P&gt;&lt;P&gt;gauss.cpp -&amp;gt;gaussFilterSycl() function causes the error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It goes to handler.hpp: line 407&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark;"&gt;&amp;nbsp; &amp;nbsp; detail::EventImplPtr Event = detail::Scheduler::getInstance().addCG(
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; std::move(CommandGroup), std::move(MQueue));&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if you can help me.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Gagan&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 11:03:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165615#M259</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-01-03T11:03:42Z</dc:date>
    </item>
    <item>
      <title>Hi Gagan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165616#M260</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;Thanks for providing the&amp;nbsp;source code, we tried running your code in our environment ("&lt;EM&gt;Ubuntu 18.04.3 LTS&lt;/EM&gt;") and it's working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We assume that the problem is with the environment, So kindly provide us more details of your visual studio environment like oneAPI toolkit version you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 13:14:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165616#M260</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-01-03T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Quote:Kuncham, Goutham</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165617#M261</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Kuncham, Goutham Kalikrishna Reddy (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;Thanks for providing the&amp;nbsp;source code, we tried running your code in our environment ("&lt;EM&gt;Ubuntu 18.04.3 LTS&lt;/EM&gt;") and it's working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We assume that the problem is with the environment, So kindly provide us more details of your visual studio environment like oneAPI toolkit version you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Goutham,&lt;/P&gt;&lt;P&gt;I am using Visual Studio 2017 with offline OnAPI kit installed with following version:&lt;/P&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;DPC++ Compiler 2021.1 (2019.8.x.0.1010)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\INTELO~1\compiler\2021~1.1-B\windows\bin&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 06:49:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165617#M261</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-01-06T06:49:39Z</dc:date>
    </item>
    <item>
      <title>Hi Gagan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165618#M262</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;We tried running your code in VS2019 with basekit 2021.1 beta03, and&amp;nbsp;it's working fine. Can you please verify whether oneAPI toolkit is integrated properly in your VS or not. and please check whether you are able to run any other codes other than this gauss.cpp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 10:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165618#M262</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-01-07T10:46:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Kuncham, Goutham</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165619#M263</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Kuncham, Goutham Kalikrishna Reddy (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;We tried running your code in VS2019 with basekit 2021.1 beta03, and&amp;nbsp;it's working fine. Can you please verify whether oneAPI toolkit is integrated properly in your VS or not. and please check whether you are able to run any other codes other than this gauss.cpp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 06:37:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165619#M263</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-01-13T06:37:09Z</dc:date>
    </item>
    <item>
      <title>Hi Gagan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165620#M264</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;Please, let us know if your issue got resolved or not, and confirm whether&amp;nbsp;we can close this thread.&lt;/P&gt;&lt;P&gt;You are always welcome to raise a new thread for any other issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Goutham&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 08:04:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/image-write-causing-exception/m-p/1165620#M264</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2020-01-14T08:04:28Z</dc:date>
    </item>
  </channel>
</rss>

