<?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 cilkplus limitations? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742622#M1041</link>
    <description>ubuntu12.04 with default compiler gcc-4.6.3&lt;BR /&gt;and with cilk /cilkplus/bin/gcc-4.8.0&lt;BR /&gt;But also installed gcc 4.7.1 under /home/user not the default installation(i dont know if matters)&lt;BR /&gt;&lt;BR /&gt;You think this has something to do with the os?because i told you even the simpler program somethimes gives runtime errors.</description>
    <pubDate>Fri, 13 Jul 2012 18:02:53 GMT</pubDate>
    <dc:creator>giannhssdra</dc:creator>
    <dc:date>2012-07-13T18:02:53Z</dc:date>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742618#M1037</link>
      <description>Hello&lt;BR /&gt;Im using this piece of code in my program just to check time differences bettween the serial program and parallel by changing the CILK_NWORKERS&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;OL&gt;&lt;LI&gt;void doSomething() { int k = 10000000; while( --k ); }&lt;/LI&gt;&lt;LI&gt;cilk_for( int i = 0 ; i &amp;lt; 1000 ; i++ )&lt;/LI&gt;&lt;LI&gt; doSomething();&lt;/LI&gt;&lt;/OL&gt;&lt;BR /&gt;No matter what is the value of CILK_NWORKERS( 4, 8, 16 ) half of the times the program runs correctly and half of the times gives this error.&lt;BR /&gt;/cilkplus/libcilkrts/runtime/local_state.c:42: cilk assertion failed: fcn&lt;BR /&gt;Aborted (core dumped)&lt;BR /&gt;&lt;BR /&gt;or seg fault&lt;BR /&gt;&lt;BR /&gt;Shouldnt the program run nomatter the value of workers?&lt;BR /&gt;&lt;BR /&gt;I was wondering what is a valid value for CILK_NWORKERS.should i leave the default value?&lt;BR /&gt;&lt;BR /&gt;Also about cilk_for is there any kind of limitation i should know?Is there a limitations about the number of iterations?I mean , since every worker works with a queue(fifo) of strands and cilk_for keeps spawning until the number of iterations &amp;lt; grainsize maybe it crashes from to many spawns i dont know.&lt;BR /&gt;&lt;BR /&gt;And its not the only time where i get seg faults where i shouldnt.All my programs half of the times run correctly and half give a seg fault.even the examples from the include files.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 13 Jul 2012 15:45:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742618#M1037</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-13T15:45:13Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742619#M1038</link>
      <description>You should never see a Cilk assertion message. These are internal sanity checks.&lt;BR /&gt;&lt;BR /&gt;Can you give me your test application?&lt;BR /&gt;&lt;BR /&gt; - Barry</description>
      <pubDate>Fri, 13 Jul 2012 16:17:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742619#M1038</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2012-07-13T16:17:21Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742620#M1039</link>
      <description>Here is the code&lt;BR /&gt;&lt;BR /&gt;Also whenever i use cilk_spawn it gives me this wanring&lt;BR /&gt;cc1plus: warning: unused variable sf_02 [-Wunused-variable]&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;#include &lt;CILK&gt;&lt;BR /&gt;#include &lt;CILK&gt;&lt;BR /&gt;#include &lt;SYS&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;double timeDif( timeval&amp;amp; s , timeval&amp;amp; e ) {&lt;BR /&gt; double time_in_ms = (e.tv_sec - s.tv_sec) * 1000.0 + (e.tv_usec - s.tv_usec)/1000.0;&lt;BR /&gt; return time_in_ms;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void doSomething(){&lt;BR /&gt; int k = 1000000;&lt;BR /&gt; while( --k );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main() {&lt;BR /&gt;&lt;BR /&gt; std::cout&amp;lt;&amp;lt;"start of main...\n";&lt;BR /&gt;&lt;BR /&gt; srand(time(NULL));&lt;BR /&gt; struct timeval start, end;&lt;BR /&gt; gettimeofday(&amp;amp;start, 0);&lt;BR /&gt;&lt;BR /&gt; cilk_for( int i = 0 ; i &amp;lt; 1000 ; i++ )&lt;BR /&gt; doSomething();&lt;BR /&gt;&lt;BR /&gt; gettimeofday(&amp;amp;end , 0);&lt;BR /&gt; std::cout&amp;lt;&amp;lt;"time : "&amp;lt;&lt;TIMEDIF&gt;&lt;/TIMEDIF&gt;&lt;BR /&gt; std::cout&amp;lt;&amp;lt;"end of main...\n";&lt;BR /&gt;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;with the default number of workers the program crashes.&lt;BR /&gt;with workers &amp;gt; 8 the program runs but with workers &amp;lt; 8 it gives the errror i told you before&lt;/STDLIB.H&gt;&lt;/SYS&gt;&lt;/CILK&gt;&lt;/CILK&gt;&lt;/IOSTREAM&gt;</description>
      <pubDate>Fri, 13 Jul 2012 16:33:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742620#M1039</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-13T16:33:54Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742621#M1040</link>
      <description>Which compiler and OS are you using?&lt;BR /&gt;&lt;BR /&gt; - Barry</description>
      <pubDate>Fri, 13 Jul 2012 17:52:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742621#M1040</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2012-07-13T17:52:07Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742622#M1041</link>
      <description>ubuntu12.04 with default compiler gcc-4.6.3&lt;BR /&gt;and with cilk /cilkplus/bin/gcc-4.8.0&lt;BR /&gt;But also installed gcc 4.7.1 under /home/user not the default installation(i dont know if matters)&lt;BR /&gt;&lt;BR /&gt;You think this has something to do with the os?because i told you even the simpler program somethimes gives runtime errors.</description>
      <pubDate>Fri, 13 Jul 2012 18:02:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742622#M1041</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-13T18:02:53Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742623#M1042</link>
      <description>It *shouldn't* have anything to do with the OS, but it's easier to ask up front. But I definitely needed to know that you're working with the GCC compiler, and on a Linux.&lt;BR /&gt;&lt;BR /&gt;If it's a GCC-specific bug it may have to wait for Balaji.&lt;BR /&gt;&lt;BR /&gt; - Barry</description>
      <pubDate>Fri, 13 Jul 2012 18:06:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742623#M1042</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2012-07-13T18:06:22Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742624#M1043</link>
      <description>Thanks for your time.&lt;BR /&gt;Another question&lt;BR /&gt;I installed this branch &lt;A href="http://gcc.gnu.org/svn/gcc/branches/cilkplus/"&gt;http://gcc.gnu.org/svn/gcc/branches/cilkplus/&lt;/A&gt;&lt;BR /&gt;but there is also this one. &lt;A href="http://gcc.gnu.org/svn/gcc/branches/cilkplus-4_7-branch/"&gt;http://gcc.gnu.org/svn/gcc/branches/cilkplus-4_7-branch/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Are they the same ?Should i install the second one?&lt;BR /&gt;&lt;BR /&gt;Are these variables set correct for cilk?for 32bit os&lt;BR /&gt;&lt;BR /&gt;export C_INCLUDE_PATH=/usr/include/i686-linux-gnu:$C_INCLUDE_PATH &lt;BR /&gt;export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH &lt;BR /&gt;export OBJC_INCLUDE_PATH=$C_INCLUDE_PATH &lt;BR /&gt;export LIBRARY_PATH=/usr/lib/i686-linux-gnu:$LIBRARY_PATH &lt;BR /&gt; &lt;BR /&gt;export GCCDIR=/home/subuntu/cilkplus &lt;BR /&gt;export PATH=$GCCDIR/bin:$PATH&lt;BR /&gt;export LD_LIBRARY_PATH=$GCCDIR/gmp/lib:$GCCDIR/mpfr/lib:$GCCDIR/mpc/lib:/home/subuntu/cilkplus/lib:$LD_LIBRARY_PATH &lt;BR /&gt;export INCLUDE_PATH=$INCLUDE_PATH:/home/subuntu/cilkplus/include&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jul 2012 18:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742624#M1043</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-13T18:12:34Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742625#M1044</link>
      <description>I'm sorry, but I don't know those answers. Balaji will have to answer them on Monday.&lt;BR /&gt;&lt;BR /&gt; - Barry</description>
      <pubDate>Fri, 13 Jul 2012 18:35:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742625#M1044</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2012-07-13T18:35:25Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742626#M1045</link>
      <description>The most up-to-date one is the cilkplus branch NOT the 4.7 branch. &lt;BR /&gt;&lt;BR /&gt;I dont think the environment variables that need to be set are dfferent on 32-bit and 64-bit machines.&lt;BR /&gt;&lt;BR /&gt;From what I can tell, I think you are setting the library paths correctly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Balaji V. Iyer.</description>
      <pubDate>Sat, 14 Jul 2012 16:26:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742626#M1045</guid>
      <dc:creator>Balaji_I_Intel</dc:creator>
      <dc:date>2012-07-14T16:26:54Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742627#M1046</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;The compiler gives this warning for every function i use spawn.(sf_02 , sf_03...) even in main&lt;BR /&gt;cc1plus: warning: unused variable sf_01 [-Wunused-variable]&lt;BR /&gt;&lt;BR /&gt;And i have this strange behaviour from spawn.&lt;BR /&gt;I cant use twice the spawn-sync compination in the same function.&lt;BR /&gt;I cant spawn from inside a child.And several other strange things.&lt;BR /&gt;&lt;BR /&gt;And cilk_for always returns this error during runtime and core dumb.&lt;BR /&gt;/cilkplus/libcilkrts/runtime/local_state.c:42: cilk assertion failed: fcn&lt;BR /&gt;&lt;BR /&gt;This warning is normal or not?&lt;BR /&gt;Does anyone else has the same behaviour with the gcc branch?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 14 Jul 2012 19:00:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742627#M1046</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-14T19:00:11Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742628#M1047</link>
      <description>Can you please give us a code example?&lt;BR /&gt;&lt;BR /&gt;-Balaji V. Iyer.</description>
      <pubDate>Sat, 14 Jul 2012 19:56:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742628#M1047</guid>
      <dc:creator>Balaji_I_Intel</dc:creator>
      <dc:date>2012-07-14T19:56:54Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742629#M1048</link>
      <description>These 3 files produce the warnings and errors i told you.&lt;BR /&gt;Any chance i did something wrong with the installation?Or since it finished the installation it should work?&lt;BR /&gt;&lt;BR /&gt;Thanks for your time</description>
      <pubDate>Sat, 14 Jul 2012 20:51:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742629#M1048</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-14T20:51:54Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742630#M1049</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I changed from ubuntu 32bit to 64 bit and now everything seeems to work fine with cilk.No more seg faults&lt;BR /&gt;Is this a known problem?</description>
      <pubDate>Wed, 18 Jul 2012 08:32:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742630#M1049</guid>
      <dc:creator>giannhssdra</dc:creator>
      <dc:date>2012-07-18T08:32:09Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742631#M1050</link>
      <description>Wouldn't the default worker stack be larger in 64-bit mode?</description>
      <pubDate>Wed, 18 Jul 2012 12:58:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742631#M1050</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2012-07-18T12:58:07Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742632#M1051</link>
      <description>None of his sample applications should be stressing the stack size, or even the number of stacks, even in 32-bit mode.&lt;BR /&gt;&lt;BR /&gt; - Barry</description>
      <pubDate>Wed, 18 Jul 2012 14:21:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742632#M1051</guid>
      <dc:creator>Barry_T_Intel</dc:creator>
      <dc:date>2012-07-18T14:21:32Z</dc:date>
    </item>
    <item>
      <title>cilkplus limitations?</title>
      <link>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742633#M1052</link>
      <description>Hello giannhssdra,&lt;BR /&gt; I tried your code-sample onmy 2core32 bit Ubuntu machine and the Cilk_for seem to work for me. I did not get any warnings. It gave me this output which looked correct. Please let me know if I have mistaken.&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;$ ../../install-test/bin/g++ cilk_for.c -O3 -ldl -lcilkrts&lt;/P&gt;&lt;P&gt;$ ./a.out&lt;/P&gt;&lt;P&gt;start&lt;/P&gt;&lt;P&gt;iteration : 0 worker : 0&lt;/P&gt;&lt;P&gt;iteration : 4 worker : 1&lt;/P&gt;&lt;P&gt;iteration : 1 worker : 0&lt;/P&gt;&lt;P&gt;iteration : 5 worker : 1&lt;/P&gt;&lt;P&gt;iteration : 6 worker : 1&lt;/P&gt;&lt;P&gt;iteration : 2 worker : 0&lt;/P&gt;&lt;P&gt;iteration : 7 worker : 1&lt;/P&gt;&lt;P&gt;iteration : 3 worker : 0&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; I am currently looking into the spawn examples and will get back to you when I get an answer.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Balaji V. Iyer.</description>
      <pubDate>Wed, 18 Jul 2012 14:52:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cilkplus-limitations/m-p/742633#M1052</guid>
      <dc:creator>Balaji_I_Intel</dc:creator>
      <dc:date>2012-07-18T14:52:35Z</dc:date>
    </item>
  </channel>
</rss>

