13 #pragma omp loop bind(thread) order(concurrent) private (j) lastprivate (i) reduction(+:r) collapse(1)
14 for (i
= 0; i
< N
; i
++)
26 #pragma omp loop bind(parallel) order(concurrent) private (j) lastprivate (i) reduction(+:r) collapse(1)
27 for (i
= 0; i
< N
; i
++)
39 #pragma omp loop bind(teams) order(concurrent) private (j) lastprivate (i) reduction(+:r)
40 for (i
= 0; i
< N
; i
++)
53 for (i
= 0; i
< N
; ++i
)
58 if (r
!= N
* (N
- 5) / 2)
63 for (i
= 0; i
< N
; ++i
)
68 if (r
!= N
* (N
- 1) / 2)
72 #pragma omp parallel loop private (j) lastprivate (i) reduction(+:r)
73 for (i
= 0; i
< N
; i
++)
81 for (i
= 0; i
< N
; ++i
)
86 if (r
!= N
* (N
+ 7) / 2)
92 for (i
= 0; i
< N
; ++i
)
97 if (r
!= N
* (N
- 1) / 2)
103 for (i
= 0; i
< N
; ++i
)
108 if (r
!= N
* (N
+ 3) / 2)
112 #pragma omp teams loop order(concurrent) private (j) lastprivate (i) reduction(+:r) collapse(1)
113 for (i
= 0; i
< N
; i
++)
121 for (i
= 0; i
< N
; ++i
)
124 if (r
!= N
* (N
- 9) / 2)