1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* { dg-do compile } */ #define N 50 #define CHUNKSIZE 5 main () { int i, chunk; float c[N]; chunk = CHUNKSIZE; #pragma omp parallel for shared (c, chunk) schedule (dynamic, chunk) for (i = 0; i < N; i++) c[i] = i; return 0; }