<?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: Beginner: Cannot set breakpoint when debugging DPC++ project in Visual Studio 2022 in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454885#M2784</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set the breakpoint by changing the below settings in Visual Studio:&lt;/P&gt;
&lt;P&gt;Uncheck the option &lt;EM&gt;“Require source files to exactly match the original version”&lt;/EM&gt; in Tools &amp;gt; Options &amp;gt; Debugging before you start debugging&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below link for more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-debugging-dpcpp-windows/top.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-debugging-dpcpp-windows/top.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Please close this post&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Glad to know 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;&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>Wed, 03 May 2023 07:40:38 GMT</pubDate>
    <dc:creator>NoorjahanSk_Intel</dc:creator>
    <dc:date>2023-05-03T07:40:38Z</dc:date>
    <item>
      <title>Beginner: Cannot set breakpoint when debugging DPC++ project in Visual Studio 2022</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454748#M2779</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just a beginner of&amp;nbsp; DPC++ prgramming. (Previously I worked with Intel oneTBB and C++ threads). I have a "stupid" question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when debugging the DPC++ code, I cannot set breakpoint after parallel_for, could anyone explain it? Thanks so much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Below is the code example from DPC++ book.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;___________________________&lt;/P&gt;
&lt;P&gt;const int size = 16;&lt;BR /&gt;std::array&amp;lt;int, size&amp;gt; data;&lt;/P&gt;
&lt;P&gt;sycl::property_list properties{ sycl::property::queue::enable_profiling() };&lt;BR /&gt;sycl::queue Q(sycl::cpu_selector_v);&lt;BR /&gt;sycl::buffer B(data);&lt;/P&gt;
&lt;P&gt;//see selected devices&lt;BR /&gt;sycl::device divece_ = Q.get_device();&lt;BR /&gt;auto info = divece_.get_info&amp;lt;sycl::info::device::name&amp;gt;();&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "Selected device: " &amp;lt;&amp;lt; info &amp;lt;&amp;lt; std::endl;&lt;/P&gt;
&lt;P&gt;Q.submit([&amp;amp;](sycl::handler&amp;amp; h) {&lt;BR /&gt;sycl::accessor A{ B, h };&lt;BR /&gt;h.parallel_for(size,&lt;BR /&gt;[=](auto&amp;amp; idx) {&lt;BR /&gt;A[idx] = idx; }&lt;BR /&gt;);&lt;BR /&gt;});&lt;BR /&gt;sycl::host_accessor A(B);&lt;/P&gt;
&lt;P&gt;for (int i = 0; i &amp;lt; size; i++) {&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "data[" &amp;lt;&amp;lt; i &amp;lt;&amp;lt; "] = " &amp;lt;&amp;lt; A[i] &amp;lt;&amp;lt; std::endl; &lt;EM&gt;&lt;STRONG&gt;//FOR EXAMPLE, CANNOT STOP HERE&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;return;&lt;/P&gt;
&lt;P&gt;_______________________________&lt;/P&gt;
&lt;P&gt;Visual Studio shows the message "the breakpoint will not be hit, no executable code is associated with this line of code."&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my understanding is that the for loop after host_accessor is run on host, and should be stopped.&lt;/P&gt;
&lt;P&gt;Could anyone help me point out where I'm wrong...&lt;/P&gt;
&lt;P&gt;Thanks!&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 02:20:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454748#M2779</guid>
      <dc:creator>CHEN__PENGJU</dc:creator>
      <dc:date>2023-02-09T02:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: Cannot set breakpoint when debugging DPC++ project in Visual Studio 2022</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454859#M2783</link>
      <description>&lt;P&gt;Please close this post. I'm just notified to use Intel distribution for GBD......Sorry for making trouble.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 08:22:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454859#M2783</guid>
      <dc:creator>CHEN__PENGJU</dc:creator>
      <dc:date>2023-02-09T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner: Cannot set breakpoint when debugging DPC++ project in Visual Studio 2022</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454885#M2784</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set the breakpoint by changing the below settings in Visual Studio:&lt;/P&gt;
&lt;P&gt;Uncheck the option &lt;EM&gt;“Require source files to exactly match the original version”&lt;/EM&gt; in Tools &amp;gt; Options &amp;gt; Debugging before you start debugging&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below link for more details:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-debugging-dpcpp-windows/top.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-debugging-dpcpp-windows/top.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Please close this post&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Glad to know 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;&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>Wed, 03 May 2023 07:40:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Beginner-Cannot-set-breakpoint-when-debugging-DPC-project-in/m-p/1454885#M2784</guid>
      <dc:creator>NoorjahanSk_Intel</dc:creator>
      <dc:date>2023-05-03T07:40:38Z</dc:date>
    </item>
  </channel>
</rss>

