I get the following error
main.c:107:2: internal compiler error: in extract_for_fields, at cilk-spawn.c:1857
}
and the relevant lines are:
cilk_for (index = 0; table_name[index]!=NULL; ++index )
{
/* some work*/
}
Line 107
corresponds to the closing braces of cilk_for loop.
Any help is appreciated!
What I did above was not a valid cilk_for
loop because the cilk_for
loop must test the control variable. Also one must be able to predict how many time the loop will run and in this case this is not possible. So the correct version for this will be
int count=0;
while(table_name[count]!=NULL)
count++;
cilk_for (index = 0; index!=count; ++index )
{
/* some work*/
}