<?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 calling python AI library from DPC++ application in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1200508#M650</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;while trying to port an application developed in C++ and calls python AI routines (embedding python) which is working fine to DPC++ application face the following issues&lt;/P&gt;
&lt;P&gt;1. the called from outside the kernel function in&amp;nbsp; DPC++ , function is declared and defined with SYCL_EXTERNAL as below&lt;/P&gt;
&lt;P&gt;extern SYCL_EXTERNAL int call_python();&lt;/P&gt;
&lt;P&gt;SYCL_EXTERNAL int call_python() {...}&lt;/P&gt;
&lt;P&gt;but still ware getting compilation error as "error : SYCL kernel cannot call an undefined function without SYCL_EXTERNAL attribute" .&lt;/P&gt;
&lt;P&gt;does it mean that every function being called by function call_python also need to be declared and defined with SYCL_EXTERNAL ??? ( we have limited option of change as it is 3rd party code)&lt;/P&gt;
&lt;P&gt;2. is there a way to call call_python () function, from inside the kernel function in&amp;nbsp; DPC++ i.e. parallel_for(...)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Manoranjan&lt;/P&gt;</description>
    <pubDate>Sat, 15 Aug 2020 10:30:14 GMT</pubDate>
    <dc:creator>Manoranjan</dc:creator>
    <dc:date>2020-08-15T10:30:14Z</dc:date>
    <item>
      <title>calling python AI library from DPC++ application</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1200508#M650</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;while trying to port an application developed in C++ and calls python AI routines (embedding python) which is working fine to DPC++ application face the following issues&lt;/P&gt;
&lt;P&gt;1. the called from outside the kernel function in&amp;nbsp; DPC++ , function is declared and defined with SYCL_EXTERNAL as below&lt;/P&gt;
&lt;P&gt;extern SYCL_EXTERNAL int call_python();&lt;/P&gt;
&lt;P&gt;SYCL_EXTERNAL int call_python() {...}&lt;/P&gt;
&lt;P&gt;but still ware getting compilation error as "error : SYCL kernel cannot call an undefined function without SYCL_EXTERNAL attribute" .&lt;/P&gt;
&lt;P&gt;does it mean that every function being called by function call_python also need to be declared and defined with SYCL_EXTERNAL ??? ( we have limited option of change as it is 3rd party code)&lt;/P&gt;
&lt;P&gt;2. is there a way to call call_python () function, from inside the kernel function in&amp;nbsp; DPC++ i.e. parallel_for(...)&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Manoranjan&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 10:30:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1200508#M650</guid>
      <dc:creator>Manoranjan</dc:creator>
      <dc:date>2020-08-15T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: calling python AI library from DPC++ application</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1200828#M653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you send me the minimal error reproducible source code if possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 10:45:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1200828#M653</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-17T10:45:51Z</dc:date>
    </item>
    <item>
      <title>Re:calling python AI library from DPC++ application</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1203438#M674</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just a quick reminder to attach your code snippet. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:39:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1203438#M674</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-24T10:39:31Z</dc:date>
    </item>
    <item>
      <title>Re:calling python AI library from DPC++ application</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1205430#M689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have not heard back from you, so I will close this thread. Feel free to post  a new question, if you still have issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2020 09:38:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/calling-python-AI-library-from-DPC-application/m-p/1205430#M689</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-31T09:38:08Z</dc:date>
    </item>
  </channel>
</rss>

