<?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:How to call class function inside a parallel_for having queue as a parameter in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1397127#M2318</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;EM&gt;passed queue as a parameter which is required by a fft.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could you please try the samples if you want to use FFT with SYCL kernels please find the path where you can find the samples for it in C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_dpcpp.zip\dpcpp\dft\source&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know what commands are you using at the time of compilation of your code? And also, could you please provide the complete error log?&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>Fri, 01 Jul 2022 09:41:48 GMT</pubDate>
    <dc:creator>VarshaS_Intel</dc:creator>
    <dc:date>2022-07-01T09:41:48Z</dc:date>
    <item>
      <title>How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1386991#M2199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this&lt;/P&gt;
&lt;P&gt;q.parallel_for(nd_range&amp;lt;1&amp;gt;((16), (16)), [=](nd_item&amp;lt;1&amp;gt; item)&lt;/P&gt;
&lt;P&gt;{&amp;nbsp; &amp;nbsp; auto index = item.get_global_id(0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; classA.func(a[index], q);&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;void classA::func(float *a, queue &amp;amp; my_queue)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But got this error&lt;/P&gt;
&lt;P&gt;Kernel parameter has non_trivially copy constructible class/struct type 'sycl::queue'&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 13:41:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1386991#M2199</guid>
      <dc:creator>Anitha</dc:creator>
      <dc:date>2022-05-24T13:41:54Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1387330#M2205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide us with the OS details and the version of dpcpp you are using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide us with a complete sample reproducer code to investigate more at our end?&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, 25 May 2022 11:55:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1387330#M2205</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-05-25T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1387608#M2208</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OS details:&lt;/P&gt;
&lt;P&gt;OS - Redhat enterprise Linux 8.0&lt;/P&gt;
&lt;P&gt;Processor - Intel Xeon(R) 16 - COMPUTE UNITS&lt;/P&gt;
&lt;P&gt;OS type - 64-bit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ToolKit versions:&lt;/P&gt;
&lt;P&gt;Basekit version - 2021.2.0-2883&lt;/P&gt;
&lt;P&gt;Hpckit version - 2021.2.0-2997&lt;/P&gt;
&lt;P&gt;Dpcpp compiler version - 2021.2.0-610&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code has been attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Anitha&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 05:32:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1387608#M2208</guid>
      <dc:creator>Anitha</dc:creator>
      <dc:date>2022-05-26T05:32:16Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1389849#M2250</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. 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>Fri, 03 Jun 2022 13:09:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1389849#M2250</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-06-03T13:09:08Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1394150#M2307</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know the use case of passing the queue as a parameter and calling it inside a kernel?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In your code(fft.cpp) you are submitting a queue inside the function definition which is being called inside a kernel. So, indirectly it became a recursive call. Recursion is not supported by the SYCL.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And also, if you want to use FFT with SYCL kernels please find the path where you can find the samples for it in C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_dpcpp.zip\dpcpp\dft\source&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>Tue, 21 Jun 2022 12:22:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1394150#M2307</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-06-21T12:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1395353#M2310</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here we are trying to do fft 16 times for different set of input's using for loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get better execution time we thought of making it parallel we used parallel_for and passed queue as a parameter which is required by a fft.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Anitha&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jun 2022 04:24:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1395353#M2310</guid>
      <dc:creator>Anitha</dc:creator>
      <dc:date>2022-06-25T04:24:39Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1397127#M2318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&lt;EM&gt;passed queue as a parameter which is required by a fft.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Could you please try the samples if you want to use FFT with SYCL kernels please find the path where you can find the samples for it in C:\Program Files (x86)\Intel\oneAPI\mkl\latest\examples\examples_dpcpp.zip\dpcpp\dft\source&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know what commands are you using at the time of compilation of your code? And also, could you please provide the complete error log?&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>Fri, 01 Jul 2022 09:41:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1397127#M2318</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-07-01T09:41:48Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1399643#M2351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please provide us with the steps/command you have followed ?&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>Tue, 12 Jul 2022 12:55:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1399643#M2351</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-07-12T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1401791#M2373</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&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, 20 Jul 2022 04:50:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1401791#M2373</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2022-07-20T04:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:How to call class function inside a parallel_for having queue as a parameter</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1402167#M2382</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using eclipse to build the program.&lt;/P&gt;
&lt;P&gt;Command : dpcpp&lt;/P&gt;
&lt;P&gt;All options : -g -Wall -O0 -l /parallelFor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And using terminal to run.&lt;/P&gt;
&lt;P&gt;./parallelFor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But while building itself we are getting error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Anitha&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 07:59:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-to-call-class-function-inside-a-parallel-for-having-queue-as/m-p/1402167#M2382</guid>
      <dc:creator>Anitha</dc:creator>
      <dc:date>2022-07-21T07:59:27Z</dc:date>
    </item>
  </channel>
</rss>

