I have a question regarding the use of a cilk_for-loop and array-notation together, when using the gcc.
Imagine having a program, where you want to add two arrays of integers A, B. One could do that, for example, either by using a cilk_for-loop, or by using array notation (e.g. A[0:size] + B[0:size]). Now, if i want to use array notation inside the cilk_for-loop, i run into a problem, because i have to specify the start and the length for the section-operator to work (because i am using gcc not an Intel compiler). I don't know how big the sections are that are created by the cilk_for-loop. Sure, i can specify a grainsize, but that is only an approximate measure, which means i could not guarantee to process the whole array A or B.
Still, the cilk_for-loop must have some variable that tells where to start and how long to run. My question is: Is there a way to access these information? If not, is it planned in a later version of cilk? I think that would be a neat feature because it would simplify the code a lot.