<?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: Access member functions inside kernel in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1364731#M1912</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for the response.&lt;/P&gt;
&lt;P&gt;I have the following issues:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;When I uncomment findNext function, I see an error in at 'extern': invalid storage class for a class member&lt;/LI&gt;
&lt;LI&gt;I am trying to use findNext function inside findBest. Is there a way to do so?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Mar 2022 09:24:21 GMT</pubDate>
    <dc:creator>student4</dc:creator>
    <dc:date>2022-03-01T09:24:21Z</dc:date>
    <item>
      <title>Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1363676#M1908</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have attached my codes(my_trial_dpcpp.cpp)&lt;BR /&gt;When I run this program, it shows an error: implicit capture of this is not allowed in kernel functions.&lt;BR /&gt;Is there a way I can access member function in kernel code.&lt;BR /&gt;I appreciate your help.&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 07:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1363676#M1908</guid>
      <dc:creator>student4</dc:creator>
      <dc:date>2022-02-25T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1364710#M1911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have made some changes to your source code in order to run without any errors. Please find the attached source code and the below screenshot to compile and run the code.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 831px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/27135i1FA5C9DB0CF361D7/image-dimensions/831x114?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="831" height="114" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please let us know if you face any issues while running the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:04:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1364710#M1911</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-03-01T09:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1364731#M1912</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for the response.&lt;/P&gt;
&lt;P&gt;I have the following issues:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;When I uncomment findNext function, I see an error in at 'extern': invalid storage class for a class member&lt;/LI&gt;
&lt;LI&gt;I am trying to use findNext function inside findBest. Is there a way to do so?&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 09:24:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1364731#M1912</guid>
      <dc:creator>student4</dc:creator>
      <dc:date>2022-03-01T09:24:21Z</dc:date>
    </item>
    <item>
      <title>Re:Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1367084#M1946</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 internally. We 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;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Mar 2022 07:53:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1367084#M1946</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-03-09T07:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1368932#M1965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/175407"&gt;@student4&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you would like to call &lt;I&gt;findNext()&lt;/I&gt; function from kernel and &lt;I&gt;findNext()&lt;/I&gt; does not use non-static members of &lt;I&gt;class Sample&lt;/I&gt; (vectors &lt;I&gt;B&lt;/I&gt; and &lt;I&gt;shat&lt;/I&gt;), then just add &lt;I&gt;static&lt;/I&gt; keyword to fix the compilation:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;static complex&amp;lt;float&amp;gt; findNext(sycl::accessor &amp;lt;complex&amp;lt;float&amp;gt;&amp;gt;BAccess)
{
	complex&amp;lt;float&amp;gt; c = BAccess[0];
	return c;
}&lt;/LI-CODE&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mariya&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:34:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1368932#M1965</guid>
      <dc:creator>Mariya_P_Intel</dc:creator>
      <dc:date>2022-03-15T11:34:11Z</dc:date>
    </item>
    <item>
      <title>Re:Access member functions inside kernel</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1370980#M1984</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/175407"&gt;@student4&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There was no feedback from you on this thread for a week.&lt;/P&gt;&lt;P&gt;I assume that the above recommendation helped and stop monitoring this thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mariya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:54:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Access-member-functions-inside-kernel/m-p/1370980#M1984</guid>
      <dc:creator>Mariya_P_Intel</dc:creator>
      <dc:date>2022-03-22T11:54:24Z</dc:date>
    </item>
  </channel>
</rss>

