5 #pragma omp declare target
45 case (OFFSET
+ 1)...(OFFSET
+ 11):
47 case (OFFSET
+ 12)...(OFFSET
+ 13):
69 #pragma omp end declare target
79 #pragma omp target map(tofrom : array[:s])
81 for (int i
= low
; i
< high
; i
++)
82 array
[i
- low
] = switch1 (i
);
85 for (int i
= low
; i
< high
; i
++)
86 assert (array
[i
- low
] == switch1 (i
));
88 #pragma omp target map(tofrom : array[:s])
90 for (int i
= low
; i
< high
; i
++)
91 array
[i
- low
] = switch2 (i
);
94 for (int i
= low
; i
< high
; i
++)
95 assert (array
[i
- low
] == switch2 (i
));
97 #pragma omp target map(tofrom : array[:s])
99 for (int i
= low
; i
< high
; i
++)
100 array
[i
- low
] = switch3 (i
);
103 for (int i
= low
; i
< high
; i
++)
104 assert (array
[i
- low
] == switch3 (i
));
106 #pragma omp target map(tofrom : array[:s])
108 for (int i
= low
; i
< high
; i
++)
109 array
[i
- low
] = switch4 (i
);
112 for (int i
= low
; i
< high
; i
++)
113 assert (array
[i
- low
] == switch4 (i
));