1 __attribute__((noipa
)) int
4 int r
= 0, r2
[2] = { 0, 0 }, i
;
5 #pragma omp parallel loop default (none) reduction (+:r, r2[:2], r3[:2]) shared (a) lastprivate (i)
6 for (i
= 0; i
< 1024; i
++)
12 return r
+ r2
[0] + r3
[1] + i
;
15 __attribute__((noipa
)) int
18 int r
= 0, r2
[2] = { 0, 0 }, i
;
19 #pragma omp target parallel loop default (none) reduction (+:r, r2[0:2], r3[0:2]) shared (a) lastprivate (i)
20 for (i
= 0; i
< 1024; i
++)
26 return r
+ r2
[1] + r3
[0] + i
;
29 __attribute__((noipa
)) int
32 int r
= 0, r2
[2] = { 0, 0 }, i
;
33 #pragma omp teams loop default (none) reduction (+:r, r2[0:2], r3[1:1]) shared (a) lastprivate (i)
34 for (i
= 0; i
< 1024; i
++)
40 return r
+ r2
[0] + r3
[1] + i
;
43 __attribute__((noipa
)) int
46 int r
= 0, r2
[2] = { 0, 0 }, i
;
47 #pragma omp target teams loop default (none) reduction (+:r, r2[1:1], r3[0:2]) shared (a) lastprivate (i)
48 for (i
= 0; i
< 1024; i
++)
55 return r
+ r2
[1] + r3
[0] + r3
[1] + i
;