I
am trying to run some benchmarks with recursively nested parallelism
(e.g., nQueens, TSP, ...) with CilkPlus but even trivial codes like the
following segfault with tiny inputs. Here's what I did.
I installed CilkPlus on Linux following the steps here http://software.intel.com/en-us/forums/showpost.php?p=166122
The test code:
#include
void rec_loop(int depth, int maxdepth) {
if (depth cilk_for(int i=0; i rec_loop(depth+1, maxdepth);
}
} // else return
}
int main(void)
{
rec_loop(0,8);
return 0;
}
------
For rec_loop(0, x) where 0<=x<=4 the program terminates without a segfault.
For x=5 there is ~50% chance of segfault. I also got the following error once
./test:
symbol lookup error:
/home/atzannes/cilkPlus-git/cilkPlus-install/lib/libcilkrts.so.5:
undefined symbol: __cilkrts_return
For 6<=x<=10 it segfaults
For x>10 not tested.
Increasing the size of the stack using 'ulimit -s unlimited' or 'ulimit -s 100000' does not help either.





