Imade an errorin my cilkification process and the icc compiler did not call me down on it. I am confused. I determined that a function A was used a lot in my program so I went to the other functions in the programthat called function A.
I then cilk_spawn -ed each call to function A in the other functions and of course put the #include in the include file section at the top of each function that called function A.
I did not (or I forgot to) put it in the aforementioned include file in function A.The program compiled under icc with no problem.
I thought that when a function (say function A) is spawned in another function that is the only way the compiler knows thatfunction Ais a cilk function is by inserting #include .
However, my program compiled with no complaints. If I had left out the
in the calling functions (with cilk_spawn in them) then it would have certainly generated an error.
Why did it not give an error in this case?
Any help appreciated. Thanks in advance.