<?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 dpct not converting thrust::host_vector to std::vector at some places in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-thrust-host-vector-to-std-vector-at-some/m-p/1199809#M639</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am converting&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM" target="_self"&gt;libSGM&lt;/A&gt;&amp;nbsp;repo using dpct and while converting some test files, I noticed that dpct is not converting &lt;FONT face="courier new,courier"&gt;thrust::host_vector&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;std::vector&lt;/FONT&gt; consistently.&lt;/P&gt;
&lt;P&gt;For example for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/integrated.cu" target="_self"&gt;test/integrated.cu&lt;/A&gt;&amp;nbsp;it successfully converted thrust::host_vector to std::vector but for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/census_transform_test.cu" target="_self"&gt;test/census_transform_test.cu&lt;/A&gt;&amp;nbsp;it left&amp;nbsp;&lt;FONT face="courier new,courier"&gt;const thrust::host_vector&amp;lt;T&amp;gt;&amp;amp; src&lt;/FONT&gt; as is and also for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/winner_takes_all_test.cu" target="_self"&gt;test/winner_takes_all_test.cu&lt;/A&gt;, it left&amp;nbsp;&lt;FONT face="courier new,courier"&gt;const thrust::host_vector&amp;lt;sgm::cost_type&amp;gt;&amp;amp; src&lt;/FONT&gt; as is at two places (parameter of function &lt;FONT face="courier new,courier"&gt;winner_takes_all_left&lt;/FONT&gt; &amp;amp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;winner_takes_all_right&lt;/FONT&gt;) .&lt;/P&gt;
&lt;P&gt;cuda files and converted files are attached for reference.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2020 17:29:22 GMT</pubDate>
    <dc:creator>Shukla__Gagandeep</dc:creator>
    <dc:date>2020-08-12T17:29:22Z</dc:date>
    <item>
      <title>dpct not converting thrust::host_vector to std::vector at some places</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-thrust-host-vector-to-std-vector-at-some/m-p/1199809#M639</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am converting&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM" target="_self"&gt;libSGM&lt;/A&gt;&amp;nbsp;repo using dpct and while converting some test files, I noticed that dpct is not converting &lt;FONT face="courier new,courier"&gt;thrust::host_vector&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;std::vector&lt;/FONT&gt; consistently.&lt;/P&gt;
&lt;P&gt;For example for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/integrated.cu" target="_self"&gt;test/integrated.cu&lt;/A&gt;&amp;nbsp;it successfully converted thrust::host_vector to std::vector but for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/census_transform_test.cu" target="_self"&gt;test/census_transform_test.cu&lt;/A&gt;&amp;nbsp;it left&amp;nbsp;&lt;FONT face="courier new,courier"&gt;const thrust::host_vector&amp;lt;T&amp;gt;&amp;amp; src&lt;/FONT&gt; as is and also for&amp;nbsp;&lt;A href="https://github.com/fixstars/libSGM/blob/master/test/winner_takes_all_test.cu" target="_self"&gt;test/winner_takes_all_test.cu&lt;/A&gt;, it left&amp;nbsp;&lt;FONT face="courier new,courier"&gt;const thrust::host_vector&amp;lt;sgm::cost_type&amp;gt;&amp;amp; src&lt;/FONT&gt; as is at two places (parameter of function &lt;FONT face="courier new,courier"&gt;winner_takes_all_left&lt;/FONT&gt; &amp;amp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;winner_takes_all_right&lt;/FONT&gt;) .&lt;/P&gt;
&lt;P&gt;cuda files and converted files are attached for reference.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 17:29:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-thrust-host-vector-to-std-vector-at-some/m-p/1199809#M639</guid>
      <dc:creator>Shukla__Gagandeep</dc:creator>
      <dc:date>2020-08-12T17:29:22Z</dc:date>
    </item>
    <item>
      <title>Re:dpct not converting thrust::host_vector to std:...</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-thrust-host-vector-to-std-vector-at-some/m-p/1200009#M643</link>
      <description>&lt;P&gt;Hi Gagan,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The migration of thrurst library variables is a bit inconsistent like you said. Issue is reproducible at my end too.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have escalated this issue to the concerned team.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reporting this issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Aug 2020 12:17:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/dpct-not-converting-thrust-host-vector-to-std-vector-at-some/m-p/1200009#M643</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2020-08-13T12:17:05Z</dc:date>
    </item>
  </channel>
</rss>

