<?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:Unable to pass parameter from one SYCL_EXTERNAL function to another through function call in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1369609#M1971</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;Ditipriya.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 17 Mar 2022 08:10:13 GMT</pubDate>
    <dc:creator>DitiD_Intel</dc:creator>
    <dc:date>2022-03-17T08:10:13Z</dc:date>
    <item>
      <title>Unable to pass parameter from one SYCL_EXTERNAL function to another through function call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1365071#M1918</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to pass a parameter for one SYCL_EXTERNAL function to another SYCL_EXTERNAL function. But when I build the program it throws link errors.&lt;/P&gt;
&lt;P&gt;Please refer to the sample code below&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;#include "sample.h"&lt;/P&gt;
&lt;P&gt;extern SYCL_EXTERNAL void func1(int Nr, float ap, float const* La, int v, int *m, int * n, float *C,const td::vector&amp;lt;std::vector&amp;lt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt;&amp;gt;&amp;gt; U,const std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt; shat)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;// func1 implementation&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;extern SYCL_EXTERNAL float func2(const std::complex&amp;lt;float&amp;gt;* y, const int Nr, float const* ap, float const* La, int constraint_bit_pos, int constraint_bit_value,int Nw )&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;std::vector&amp;lt;std::vector&amp;lt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt;&amp;gt;&amp;gt; U;&lt;BR /&gt;std::vector&amp;lt;std::vector&amp;lt;float&amp;gt;&amp;gt; L;&lt;BR /&gt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt; shat; &lt;BR /&gt;std::vector&amp;lt;std::complex&amp;lt;float&amp;gt;&amp;gt; d; &lt;BR /&gt;std::vector&amp;lt;int&amp;gt; m; &lt;BR /&gt;std::vector&amp;lt;int&amp;gt; n; &lt;BR /&gt;std::vector&amp;lt;float&amp;gt; C;&lt;BR /&gt;&lt;BR /&gt;// func 2 implementation&lt;/P&gt;
&lt;P&gt;func1(Nr, ap[v - 1], &amp;amp;La[(v - 1) * bps], v,&amp;amp;m[v-1],&amp;amp;n[v-1],&amp;amp;C[v-1],U,shat); // No link errors if U and shat are removed &lt;BR /&gt;return La[0];&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;sample::sample()&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sample::~sample()&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;void sample::func3(std::complex&amp;lt;float&amp;gt;* y, const int Nr, float const* ap, float const* La, const std::vector&amp;lt;int&amp;gt;&amp;amp; sym_indices, float* Lp)&lt;BR /&gt;{&lt;/P&gt;
&lt;P&gt;sycl::buffer sym_indicesBuff(sym_indices);&lt;BR /&gt;sycl::buffer best_symsBuff(best_syms);&lt;BR /&gt;sycl::buffer LpBuff(Lptemp);&lt;BR /&gt;// device selection&lt;BR /&gt;cl::sycl::ext::intel::fpga_emulator_selector d_selector;&lt;BR /&gt;// queue declaration&lt;BR /&gt;cl::sycl::queue q(d_selector);&lt;BR /&gt;q.submit([&amp;amp;](sycl::handler&amp;amp; h)&lt;BR /&gt;{&lt;BR /&gt;sycl::accessor sym_indicesAccess(sym_indicesBuff, h, sycl::read_only);&lt;BR /&gt;sycl::accessor best_symsAccess(best_symsBuff, h, sycl::read_only);&lt;BR /&gt;sycl::accessor LpAccessor(LpBuff, h, sycl::read_write);&lt;/P&gt;
&lt;P&gt;h.parallel_for(sycl::range&amp;lt;2&amp;gt;(sym_indicesAccess.size(), 2), [=](auto idx)&lt;BR /&gt;{&lt;BR /&gt;int v = idx[0];&lt;BR /&gt;int b = idx[1];&lt;/P&gt;
&lt;P&gt;// kernel codes&lt;BR /&gt;// calling SYCL_EXTERNAL function&lt;BR /&gt;dcmap= func2(y, Nr, ap, La, constraint_bit_pos, constraint_bit_value,nw); &lt;BR /&gt;});&lt;BR /&gt;});&lt;/P&gt;
&lt;P&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>Wed, 02 Mar 2022 09:06:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1365071#M1918</guid>
      <dc:creator>student4</dc:creator>
      <dc:date>2022-03-02T09:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass parameter from one SYCL_EXTERNAL function to another through function call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1365480#M1921</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; But when I build the program it throws link errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us with a screenshot or the log file of the exact error that you are getting?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; Please refer to the sample code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide us with the complete sample reproducer along with the steps that you have followed so that we can investigate more on your issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And also, please share the platform details, operating system, Intel compiler and oneAPI toolkit version that you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; // func 2 implementation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;func1(Nr, ap[v - 1], &amp;amp;La[(v - 1) * bps], v,&amp;amp;m[v-1],&amp;amp;n[v-1],&amp;amp;C[v-1],U,shat); // No link errors if U and shat are removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lastly, could you please elaborate more on the comment that you have added here? Upon removal of U and shat, were you able to compile and run the code successfully?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&lt;/P&gt;
&lt;P&gt;Ditipriya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 11:34:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1365480#M1921</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-03-03T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to pass parameter from one SYCL_EXTERNAL function to another through function call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1367529#M1950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We've not heard back from you. Can you please provide an update?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ditipriya.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Mar 2022 12:33:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1367529#M1950</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-03-10T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re:Unable to pass parameter from one SYCL_EXTERNAL function to another through function call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1369609#M1971</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;Ditipriya.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Mar 2022 08:10:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Unable-to-pass-parameter-from-one-SYCL-EXTERNAL-function-to/m-p/1369609#M1971</guid>
      <dc:creator>DitiD_Intel</dc:creator>
      <dc:date>2022-03-17T08:10:13Z</dc:date>
    </item>
  </channel>
</rss>

