I am running a verylong execution time c program.I believe that the best way to improve speed is to cilkify the for loops. Some of these loops are nested, sometimes several loops deep.
I am trying to add cilk_for loops to the for loopsin hoping to speed the program up. I have selected the longest running (in terms of % time) functions and concentrated on those.i will then use cilkscreen and cilkview to see which loopsare help by adding cik_for and which are not helped.
The issue is seg faults. When cilkifyng for loop thatis really two for loops nestedwith one nested; I usually succeed only 50% of the time. The other times I get a seg fault. The cilk software does not say where the fault occurs. The program crashes with a seg fault output. Finding seg faults in serial programs is hard enough and it is impossible (it seems) in paraellel programs.
Is the Intel Cilk able to do this consistently with a stable prgram resulting?is it wise to nest for loops into cilk_for loops in terms of program speed up? I thought that somewhere in a Intel Cillk manual this was advised against.
Thank in advance.