<?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 How to transfer reducer_list_append to MIC? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-to-transfer-reducer-list-append-to-MIC/m-p/1020859#M38115</link>
    <description>&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Hi I am new to cilk plus and MIC. I had this topic in MIC forum as well&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I have a problem where I need to offload/parallel process some data, append to a list B , and return to the host. The host will then combine this list to another host std::list&amp;lt;T&amp;gt; A.&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I have following approach:&amp;nbsp;&lt;/P&gt;

&lt;OL style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;
	&lt;LI&gt;&amp;nbsp;Create a cilk::reducer_list_append&amp;lt;T&amp;gt; B on host&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;use cilk_shared , B is empty now.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&amp;nbsp;Cilk Plus will automatically transfer B to MIC , MIC does some calculations and append data to B and return B&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&amp;nbsp;back to host.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;B.get_value() will return a std::list&amp;lt;T&amp;gt; C , use A.splice to combine list A and C.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I read this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/forums/topic/360604" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/forums/topic/360604&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;and it seems that in order to cilk share STL or other container like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;cilk::reducer_list_append,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I need to specify the allocator of B to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;__offload::shared_allocator&amp;lt;&amp;gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;So My concern is&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;1. do I need to construct my A using allocator&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;__offload::shared_allocator&amp;lt;&amp;gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;as well ? Otherwise C will have different allocator with A right?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;2. Is there a easy way to solve this problem ? I just need to transfer a list back and forth between host and MIC&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2015 08:50:22 GMT</pubDate>
    <dc:creator>Jun</dc:creator>
    <dc:date>2015-04-12T08:50:22Z</dc:date>
    <item>
      <title>How to transfer reducer_list_append to MIC?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-to-transfer-reducer-list-append-to-MIC/m-p/1020859#M38115</link>
      <description>&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Hi I am new to cilk plus and MIC. I had this topic in MIC forum as well&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I have a problem where I need to offload/parallel process some data, append to a list B , and return to the host. The host will then combine this list to another host std::list&amp;lt;T&amp;gt; A.&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I have following approach:&amp;nbsp;&lt;/P&gt;

&lt;OL style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;
	&lt;LI&gt;&amp;nbsp;Create a cilk::reducer_list_append&amp;lt;T&amp;gt; B on host&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;use cilk_shared , B is empty now.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;&amp;nbsp;Cilk Plus will automatically transfer B to MIC , MIC does some calculations and append data to B and return B&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&amp;nbsp;back to host.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;B.get_value() will return a std::list&amp;lt;T&amp;gt; C , use A.splice to combine list A and C.&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I read this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/forums/topic/360604" style="font-size: 1em; line-height: 1.5;"&gt;https://software.intel.com/en-us/forums/topic/360604&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;and it seems that in order to cilk share STL or other container like&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;cilk::reducer_list_append,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;I need to specify the allocator of B to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;__offload::shared_allocator&amp;lt;&amp;gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;So My concern is&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;1. do I need to construct my A using allocator&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px; background-color: rgb(238, 238, 238);"&gt;&amp;nbsp;__offload::shared_allocator&amp;lt;&amp;gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;as well ? Otherwise C will have different allocator with A right?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;2. Is there a easy way to solve this problem ? I just need to transfer a list back and forth between host and MIC&lt;/P&gt;

&lt;P style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 08:50:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-to-transfer-reducer-list-append-to-MIC/m-p/1020859#M38115</guid>
      <dc:creator>Jun</dc:creator>
      <dc:date>2015-04-12T08:50:22Z</dc:date>
    </item>
  </channel>
</rss>

