<?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 could we use struct including vector or array in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1486136#M3066</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Were the sample codes that we provided able to resolve your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you still face any issues, you can reach out to us.&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;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 15 May 2023 06:19:21 GMT</pubDate>
    <dc:creator>RabiyaSK_Intel</dc:creator>
    <dc:date>2023-05-15T06:19:21Z</dc:date>
    <item>
      <title>How could we use struct including vector or array</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1483793#M3057</link>
      <description>&lt;PRE class="MarkdownCodeBlock_preTag__dDgT9"&gt;&lt;CODE class="MarkdownCodeBlock_codeTag__ipdCC"&gt;&lt;SPAN class="hljs-class"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="hljs-class"&gt;obj&lt;/SPAN&gt;&lt;SPAN class="hljs-class"&gt; {&lt;/SPAN&gt;
  &lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt;* arr;
&lt;/SPAN&gt;  &lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; size;
&lt;/SPAN&gt;};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class="MarkdownCodeBlock_preTag__dDgT9"&gt;&lt;CODE class="MarkdownCodeBlock_codeTag__ipdCC"&gt;&lt;SPAN class="hljs-class"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="hljs-class"&gt;obj&lt;/SPAN&gt;&lt;SPAN class="hljs-class"&gt; {&lt;/SPAN&gt;
  vector&amp;lt;int&amp;gt;&lt;SPAN&gt; arr;
&lt;/SPAN&gt;  &lt;SPAN&gt;int&lt;/SPAN&gt;&lt;SPAN&gt; size;
&lt;/SPAN&gt;};&lt;/CODE&gt;&lt;CODE class="MarkdownCodeBlock_codeTag__ipdCC"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I want to build&amp;nbsp; a struct like above, but sycl may not allow these struct. The first struct contains a point, So these data&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;to which the pointer points cannot be copied to device. The second struct contains a vector, but at code of device I am not able to&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;get data using subscripts.&lt;BR /&gt;The quesition is how can I build a struct with same&amp;nbsp;&lt;SPAN&gt; functional which can be&amp;nbsp;used on the device.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 09:05:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1483793#M3057</guid>
      <dc:creator>jimbook_</dc:creator>
      <dc:date>2023-05-07T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: How could we use struct including vector or array</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1484463#M3058</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;EM&gt;The quesition is how can I build a struct with same functional which can be used on the device.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;We can build structures with both array pointer member and vector member in SYCL code which can be used on device.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've tried a sample code using structures with both array pointer and vector members and we received expected outputs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the attached zip file for the sample codes that we have tried.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please refer to the below screenshots for the results.&lt;/P&gt;
&lt;P&gt;For structure with pointer array member:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RabiyaSK_Intel_0-1683630536594.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/41100i8357434F4DECB5E3/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RabiyaSK_Intel_0-1683630536594.png" alt="RabiyaSK_Intel_0-1683630536594.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For structure with vector member:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RabiyaSK_Intel_1-1683630564191.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/41101iEE799A59BC7D1A4F/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="RabiyaSK_Intel_1-1683630564191.jpeg" alt="RabiyaSK_Intel_1-1683630564191.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Shaik Rabiya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 11:55:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1484463#M3058</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-05-09T11:55:14Z</dc:date>
    </item>
    <item>
      <title>Re:How could we use struct including vector or array</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1486136#M3066</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Were the sample codes that we provided able to resolve your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you still face any issues, you can reach out to us.&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;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 May 2023 06:19:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1486136#M3066</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-05-15T06:19:21Z</dc:date>
    </item>
    <item>
      <title>Re:How could we use struct including vector or array</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1486851#M3069</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 whether your issue is resolved as you accepted it as a solution?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If your issue isn't resolved, please reach out to us.&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;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 May 2023 05:18:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1486851#M3069</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-05-17T05:18:24Z</dc:date>
    </item>
    <item>
      <title>Re:How could we use struct including vector or array</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1488736#M3099</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I hope your issue is resolved. If you need any additional information, you can raise a new question as this thread will no longer be monitored by Intel.&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;Shaik Rabiya&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 May 2023 09:17:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/How-could-we-use-struct-including-vector-or-array/m-p/1488736#M3099</guid>
      <dc:creator>RabiyaSK_Intel</dc:creator>
      <dc:date>2023-05-23T09:17:52Z</dc:date>
    </item>
  </channel>
</rss>

