<?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:Using printf inside kernel code in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1379763#M2076</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Apr 2022 09:57:57 GMT</pubDate>
    <dc:creator>HemanthCH_Intel</dc:creator>
    <dc:date>2022-04-26T09:57:57Z</dc:date>
    <item>
      <title>Using printf inside kernel code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1375495#M2035</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This screenshot is taken from Intel oneAPI Programming Guide(pg 44).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="student4_0-1649406899056.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/28380i2CB1C4A72898BCC1/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="student4_0-1649406899056.png" alt="student4_0-1649406899056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the documentation, printf can be used inside the kernel code for debugging.&lt;BR /&gt;But when I used inside my kernel code, it shows an error 'sycl kernel cannot call undefined function'.&lt;BR /&gt;q.submit([&amp;amp;](sycl::handler&amp;amp; h){&lt;BR /&gt;h.single_task([=]() {&lt;BR /&gt;printf&lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 08:35:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1375495#M2035</guid>
      <dc:creator>student4</dc:creator>
      <dc:date>2022-04-08T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using printf inside kernel code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1375723#M2037</link>
      <description>&lt;P&gt;That's because you are not calling the function with right syntax. printf(...) is in cl::sycl::ext::oneapi::experimental namespace, you need to specify a namespace for an external function. I would recommend using sycl::stream for the ease of use.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 21:44:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1375723#M2037</guid>
      <dc:creator>QM</dc:creator>
      <dc:date>2022-04-08T21:44:40Z</dc:date>
    </item>
    <item>
      <title>Re:Using printf inside kernel code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1378119#M2056</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 any updates 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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:27:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1378119#M2056</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-04-19T12:27:04Z</dc:date>
    </item>
    <item>
      <title>Re:Using printf inside kernel code</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1379763#M2076</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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;Hemanth&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Apr 2022 09:57:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Using-printf-inside-kernel-code/m-p/1379763#M2076</guid>
      <dc:creator>HemanthCH_Intel</dc:creator>
      <dc:date>2022-04-26T09:57:57Z</dc:date>
    </item>
  </channel>
</rss>

