<?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: Re:Stuck on ATS-P GPUs in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1553917#M3458</link>
    <description>&lt;P&gt;Does this issue fix recently&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 12:40:24 GMT</pubDate>
    <dc:creator>thanhbinhqb</dc:creator>
    <dc:date>2023-12-14T12:40:24Z</dc:date>
    <item>
      <title>Stuck on ATS-P GPUs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390392#M2255</link>
      <description>&lt;P&gt;I found that when the compilation optimization level is O0 (using the &lt;STRONG&gt;compilation script&lt;/STRONG&gt; below), the following code will stuck. &lt;SPAN&gt;&amp;nbsp;I think it is related to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;sycl::stream (line 22-23).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt; #include &amp;lt;CL/sycl.hpp&amp;gt;
 using namespace sycl;
 #define WRAP_SIZE 32
 int main(){
    sycl::gpu_selector selector;
    queue exec_queue(selector);
    int num_blocks=128;
    int num_threads=256;
     int size=num_blocks*num_threads;
    int casBeg=0;
    int casEnd=2;
    double * _buff = (double*)sycl::malloc_device(sizeof(double)*size, exec_queue);
    exec_queue.submit([&amp;amp;](sycl::handler&amp;amp; cgh)
    {
        sycl::stream out{ 4096, 128, cgh };
        auto sharedmem = sycl::accessor&amp;lt;int, 1, sycl::access_mode::read_write, sycl::access::target::local&amp;gt;(11, cgh);
        cgh.parallel_for(
            sycl::nd_range&amp;lt;1&amp;gt;(num_blocks * num_threads, num_threads),
            [=](sycl::nd_item&amp;lt;1&amp;gt; item_ct1) [[intel::reqd_sub_group_size(WRAP_SIZE)]] {
                int blkId = item_ct1.get_group(0);
                int tid = item_ct1.get_local_id(0);
		        if(blkId==0 &amp;amp;&amp;amp; tid==0)
			       out&amp;lt;&amp;lt;"inter\n";
                _buff[num_threads*blkId+tid]=tid;
                item_ct1.barrier(sycl::access::fence_space::local_space);
            });
    }).wait();
    std::cout&amp;lt;&amp;lt;"finish program!"&amp;lt;&amp;lt;std::endl;
    return 0;
 }
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="6"&gt;&lt;STRONG&gt;&amp;nbsp;Compile and run scripts&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;# file run.sh
echo "compile program"
dpcpp -std=c++17 -o project_op1 main.cpp
dpcpp -std=c++17 -O0 -o project_op0 main.cpp
echo "run project op level-one"
./project_op1
echo "run project op level-zero"
./project_op0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;Devcloud Machine&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ats_machine.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/30242i2A590FE87F7B2A51/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ats_machine.png" alt="ats_machine.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 00:34:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390392#M2255</guid>
      <dc:creator>PcDack1</dc:creator>
      <dc:date>2022-06-07T00:34:42Z</dc:date>
    </item>
    <item>
      <title>Re:Stuck on ATS-P GPUs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390496#M2257</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your issue and will get back to you soon.&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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jun 2022 06:25:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390496#M2257</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-06-07T06:25:44Z</dc:date>
    </item>
    <item>
      <title>Re:Stuck on ATS-P GPUs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390677#M2262</link>
      <description>&lt;P&gt;I've reported this to our development team. &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Jun 2022 18:06:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1390677#M2262</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2022-06-07T18:06:49Z</dc:date>
    </item>
    <item>
      <title>Re:Stuck on ATS-P GPUs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1431765#M2648</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Since this occurs only at -O0 and on ATS-P, developer is not planning to fix this issue. Hence, I will close this issue as "Wont Fix". &lt;/P&gt;&lt;P&gt;If it happens on other platforms, please create a new thread.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 12:51:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1431765#M2648</guid>
      <dc:creator>Viet_H_Intel</dc:creator>
      <dc:date>2022-11-21T12:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Stuck on ATS-P GPUs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1553917#M3458</link>
      <description>&lt;P&gt;Does this issue fix recently&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 12:40:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Stuck-on-ATS-P-GPUs/m-p/1553917#M3458</guid>
      <dc:creator>thanhbinhqb</dc:creator>
      <dc:date>2023-12-14T12:40:24Z</dc:date>
    </item>
  </channel>
</rss>

