<?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 Yes, this looks like a bug in in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015108#M35701</link>
    <description>&lt;P&gt;Yes, this looks like a bug in GCC's Cilkplus branch. Unfortunately there are no plans to support separate branches anymnore since now we are integrating Cilk_for support into the GCC trunk (it will be version 5.0)&amp;nbsp;thus all Cilk+ features will be there together. Of course, we will make sure that given test works in the trunk after we finish integration&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2014 09:49:00 GMT</pubDate>
    <dc:creator>Igor_Z_Intel</dc:creator>
    <dc:date>2014-08-06T09:49:00Z</dc:date>
    <item>
      <title>cilk_spawn inside cilk_for</title>
      <link>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015106#M35699</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;For some reason, whenever I have a spawn and sync inside a cilk_for it seems as though the spawn does not get recognized.&amp;nbsp; I end up getting a compile time error of Expected _Cilk_spawn before _Cilk_sync.&amp;nbsp; As an example consider the following (overly simple) program:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void foo(){
    cout &amp;lt;&amp;lt; "foo";
}

void bar(){
    cout &amp;lt;&amp;lt; "bar";
}

void baz(){
    cout &amp;lt;&amp;lt; "baz";
}

int main(){
    cilk_for(int i-0; i&amp;lt;10; i++){
        cilk_spawn foo();
        bar();
        cilk_sync;
        baz();
    }
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If I try to compile this I get the above mentioned error.&amp;nbsp; Does anyone have any idea as to why this might be happening and/or how I can solve it.&amp;nbsp; (If I move the spawn and sync into a separate helper method it solves the problem, but unfortunately in my real use case it would mean passing a lot of variables by pointer.)&amp;nbsp; I am using g++ 4.8.1 with cilkplus.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp; - Meir&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 16:20:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015106#M35699</guid>
      <dc:creator>Meir_F_</dc:creator>
      <dc:date>2014-08-01T16:20:19Z</dc:date>
    </item>
    <item>
      <title>It's a bug in the gcc</title>
      <link>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015107#M35700</link>
      <description>&lt;P&gt;It's a bug in the gcc implementation. icc compiled it without complaint (after I fixed the "int i-0" typo and added the obvious includes/using). &amp;nbsp;I'll try to get this reported to the code maintainer.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2014 21:02:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015107#M35700</guid>
      <dc:creator>ARCH_R_Intel</dc:creator>
      <dc:date>2014-08-04T21:02:35Z</dc:date>
    </item>
    <item>
      <title>Yes, this looks like a bug in</title>
      <link>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015108#M35701</link>
      <description>&lt;P&gt;Yes, this looks like a bug in GCC's Cilkplus branch. Unfortunately there are no plans to support separate branches anymnore since now we are integrating Cilk_for support into the GCC trunk (it will be version 5.0)&amp;nbsp;thus all Cilk+ features will be there together. Of course, we will make sure that given test works in the trunk after we finish integration&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:49:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilk-spawn-inside-cilk-for/m-p/1015108#M35701</guid>
      <dc:creator>Igor_Z_Intel</dc:creator>
      <dc:date>2014-08-06T09:49:00Z</dc:date>
    </item>
  </channel>
</rss>

