I cilk_spawn -ed a call from my c source main and when I compiled and ran the program it crashed. I went back and saw my error and added on the next line
cilk_sync; it ran pferectly after compiling.
I thougt cilk_syncthis was put in automatically, therefore, why did it crash in the first run?
Also, I have a for loop that has a function call init. Do I gain anything by adding cilk_spawn to itand then on the next line cilk_sync? Should I just leave well enough allone.
Any help appreciated.