3 #ifndef NONMONOTONIC_TYPE
6 #define NONMONOTONIC_TYPE int
7 #define NONMONOTONIC_END(n) n
16 #pragma omp parallel for schedule(nonmonotonic: dynamic)
17 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
19 #pragma omp parallel for schedule(nonmonotonic: dynamic, 5)
20 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
22 #pragma omp parallel for schedule(nonmonotonic: guided)
23 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
25 #pragma omp parallel for schedule(nonmonotonic: guided, 7)
26 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
30 int cnt
= omp_get_num_threads ();
31 int thr
= omp_get_thread_num ();
35 #pragma omp for schedule(nonmonotonic: dynamic)
36 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
38 #pragma omp for schedule(nonmonotonic: dynamic, 7)
39 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
41 #pragma omp for schedule(nonmonotonic: guided)
42 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
44 #pragma omp for schedule(nonmonotonic: guided, 5)
45 for (i
= 0; i
< NONMONOTONIC_END (73); i
++)
47 #pragma omp single private (i)
48 for (i
= 0; i
< 73; i
++)
49 if (a
[i
] != 8 + (i
< cnt
))