I am trying to call a function inside a parallel for loop in Cilk plus. If I declare an array in the function that I call, would it have race issues? I am getting Segmentation fault or Aborted(Core dumped) errors after some runs of the loop.
PScan()
{
// Would working on w create race issues?
double *w = calloc(num,sizeof(double));
}