| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
|
| 3 |
typedef enum omp_allocator_handle_t |
| 4 |
: __UINTPTR_TYPE__ |
| 5 |
{ |
| 6 |
omp_null_allocator = 0, |
| 7 |
omp_default_mem_alloc = 1, |
| 8 |
omp_large_cap_mem_alloc = 2, |
| 9 |
omp_const_mem_alloc = 3, |
| 10 |
omp_high_bw_mem_alloc = 4, |
| 11 |
omp_low_lat_mem_alloc = 5, |
| 12 |
omp_cgroup_mem_alloc = 6, |
| 13 |
omp_pteam_mem_alloc = 7, |
| 14 |
omp_thread_mem_alloc = 8, |
| 15 |
__omp_allocator_handle_t_max__ = __UINTPTR_MAX__ |
| 16 |
} omp_allocator_handle_t; |
| 17 |
|
| 18 |
typedef enum omp_sync_hint_t { |
| 19 |
omp_sync_hint_none = 0x0, |
| 20 |
omp_lock_hint_none = omp_sync_hint_none, |
| 21 |
omp_sync_hint_uncontended = 0x1, |
| 22 |
omp_lock_hint_uncontended = omp_sync_hint_uncontended, |
| 23 |
omp_sync_hint_contended = 0x2, |
| 24 |
omp_lock_hint_contended = omp_sync_hint_contended, |
| 25 |
omp_sync_hint_nonspeculative = 0x4, |
| 26 |
omp_lock_hint_nonspeculative = omp_sync_hint_nonspeculative, |
| 27 |
omp_sync_hint_speculative = 0x8, |
| 28 |
omp_lock_hint_speculative = omp_sync_hint_speculative |
| 29 |
} omp_sync_hint_t; |
| 30 |
|
| 31 |
typedef struct __attribute__((__aligned__ (sizeof (void *)))) omp_depend_t { |
| 32 |
char __omp_depend_t__[2 * sizeof (void *)]; |
| 33 |
} omp_depend_t; |
| 34 |
|
| 35 |
int t; |
| 36 |
#pragma omp threadprivate (t) |
| 37 |
|
| 38 |
#pragma omp declare target |
| 39 |
int f, l, ll, r, r2; |
| 40 |
|
| 41 |
void |
| 42 |
foo (int d, int m, int i1, int i2, int p, int *idp, int s, |
| 43 |
int nte, int tl, int nth, int g, int nta, int fi, int pp, int *q, int ntm) |
| 44 |
{ |
| 45 |
[[omp::directive (distribute parallel for |
| 46 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 47 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 48 |
lastprivate (l) schedule(static, 4) order(concurrent) allocate (omp_default_mem_alloc:f))]] |
| 49 |
for (int i = 0; i < 64; i++) |
| 50 |
ll++; |
| 51 |
[[omp::directive (distribute parallel for simd |
| 52 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 53 |
if (parallel: i2) if(simd: i1) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 54 |
lastprivate (l) schedule(static, 4) nontemporal(ntm) |
| 55 |
safelen(8) simdlen(4) aligned(q: 32) order(concurrent) allocate (omp_default_mem_alloc:f))]] |
| 56 |
for (int i = 0; i < 64; i++) |
| 57 |
ll++; |
| 58 |
[[omp::directive (distribute simd |
| 59 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 60 |
safelen(8) simdlen(4) aligned(q: 32) reduction(+:r) if(i1) nontemporal(ntm) |
| 61 |
order(concurrent) allocate (omp_default_mem_alloc:f))]] |
| 62 |
for (int i = 0; i < 64; i++) |
| 63 |
ll++; |
| 64 |
[[omp::directive (distribute |
| 65 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 66 |
allocate (omp_default_mem_alloc:f) order(concurrent))]] |
| 67 |
for (int i = 0; i < 64; i++) |
| 68 |
ll++; |
| 69 |
} |
| 70 |
|
| 71 |
void |
| 72 |
qux (int p) |
| 73 |
{ |
| 74 |
[[omp::directive (loop bind(teams) order(concurrent) |
| 75 |
private (p) lastprivate (l) collapse(1) reduction(+:r))]] |
| 76 |
for (l = 0; l < 64; ++l) |
| 77 |
ll++; |
| 78 |
} |
| 79 |
#pragma omp end declare target |
| 80 |
|
| 81 |
void |
| 82 |
baz (int d, int m, int i1, int i2, int p, int *idp, int s, |
| 83 |
int nte, int tl, int nth, int g, int nta, int fi, int pp, int *q, int ntm) |
| 84 |
{ |
| 85 |
[[omp::directive (distribute parallel for |
| 86 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 87 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 88 |
lastprivate (l) schedule(static, 4) copyin(t) allocate (p))]] |
| 89 |
for (int i = 0; i < 64; i++) |
| 90 |
ll++; |
| 91 |
[[omp::directive (distribute parallel for |
| 92 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 93 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 94 |
lastprivate (l) schedule(static, 4) order(concurrent) allocate (p))]] |
| 95 |
for (int i = 0; i < 64; i++) |
| 96 |
ll++; |
| 97 |
[[omp::directive (distribute parallel for simd |
| 98 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 99 |
if (parallel: i2) if(simd: i1) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 100 |
lastprivate (l) schedule(static, 4) nontemporal(ntm) |
| 101 |
safelen(8) simdlen(4) aligned(q: 32) copyin(t) allocate (f))]] |
| 102 |
for (int i = 0; i < 64; i++) |
| 103 |
ll++; |
| 104 |
[[omp::directive (distribute parallel for simd |
| 105 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 106 |
if (parallel: i2) if(simd: i1) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 107 |
lastprivate (l) schedule(static, 4) nontemporal(ntm) |
| 108 |
safelen(8) simdlen(4) aligned(q: 32) order(concurrent) allocate (f))]] |
| 109 |
for (int i = 0; i < 64; i++) |
| 110 |
ll++; |
| 111 |
[[omp::directive (distribute simd |
| 112 |
private (p) firstprivate (f) collapse(1) dist_schedule(static, 16) |
| 113 |
safelen(8) simdlen(4) aligned(q: 32) reduction(+:r) if(i1) nontemporal(ntm) |
| 114 |
order(concurrent) allocate (f))]] |
| 115 |
for (int i = 0; i < 64; i++) |
| 116 |
ll++; |
| 117 |
[[omp::directive (loop bind(parallel) order(concurrent) |
| 118 |
private (p) lastprivate (l) collapse(1) reduction(+:r))]] |
| 119 |
for (l = 0; l < 64; ++l) |
| 120 |
ll++; |
| 121 |
} |
| 122 |
|
| 123 |
void |
| 124 |
bar (int d, int m, int i1, int i2, int i3, int p, int *idp, int hda, int s, |
| 125 |
int nte, int tl, int nth, int g, int nta, int fi, int pp, int *q, int *dd, int ntm, |
| 126 |
const char *msg, int n1, int n2) |
| 127 |
{ |
| 128 |
[[omp::directive (nothing)]]; |
| 129 |
[[omp::directive (error at (execution) severity (warning) message (msg))]]; |
| 130 |
[[omp::directive (for simd |
| 131 |
private (p) firstprivate (f) lastprivate (l) linear (ll:1) reduction(+:r) schedule(static, 4) collapse(1) nowait |
| 132 |
safelen(8) simdlen(4) aligned(q: 32) nontemporal(ntm) if(i1) order(concurrent) allocate (f))]] |
| 133 |
for (int i = 0; i < 64; i++) |
| 134 |
ll++; |
| 135 |
[[omp::directive (for |
| 136 |
private (p) firstprivate (f) lastprivate (l) linear (ll:1) reduction(+:r) schedule(static, 4) collapse(1) nowait |
| 137 |
order(concurrent) allocate (f))]] |
| 138 |
for (int i = 0; i < 64; i++) |
| 139 |
ll++; |
| 140 |
[[omp::directive (simd |
| 141 |
private (p) lastprivate (l) linear (ll:1) reduction(+:r) collapse(1) safelen(8) simdlen(4) aligned(q: 32) |
| 142 |
nontemporal(ntm) if(i1) order(concurrent))]] |
| 143 |
for (int i = 0; i < 64; i++) |
| 144 |
ll++; |
| 145 |
[[omp::directive (parallel for |
| 146 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 147 |
lastprivate (l) linear (ll:1) ordered schedule(static, 4) collapse(1) allocate (f))]] |
| 148 |
for (int i = 0; i < 64; i++) |
| 149 |
ll++; |
| 150 |
[[omp::directive (parallel for |
| 151 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 152 |
lastprivate (l) linear (ll:1) schedule(static, 4) collapse(1) order(concurrent) allocate (f))]] |
| 153 |
for (int i = 0; i < 64; i++) |
| 154 |
ll++; |
| 155 |
[[omp::directive (parallel for simd |
| 156 |
private (p) firstprivate (f) if (i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 157 |
lastprivate (l) linear (ll:1) schedule(static, 4) collapse(1) |
| 158 |
safelen(8) simdlen(4) aligned(q: 32) nontemporal(ntm) order(concurrent) allocate (f))]] |
| 159 |
for (int i = 0; i < 64; i++) |
| 160 |
ll++; |
| 161 |
[[omp::directive (parallel sections |
| 162 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 163 |
lastprivate (l) allocate (f))]] |
| 164 |
{ |
| 165 |
[[omp::directive (section)]] |
| 166 |
{} |
| 167 |
[[omp::sequence (omp::directive (section))]] |
| 168 |
{} |
| 169 |
} |
| 170 |
[[omp::directive (sections private (p) firstprivate (f) reduction(+:r) lastprivate (l) allocate (f) nowait)]] |
| 171 |
{ |
| 172 |
; |
| 173 |
[[omp::sequence (sequence (directive (section)))]] |
| 174 |
; |
| 175 |
[[omp::directive (section)]] |
| 176 |
{} |
| 177 |
} |
| 178 |
[[omp::directive (barrier)]]; |
| 179 |
[[omp::sequence (omp::directive (single private (p) firstprivate (f) allocate (f) nowait))]] |
| 180 |
; |
| 181 |
[[omp::sequence (directive (barrier))]]; |
| 182 |
[[omp::sequence (directive (parallel private (p)), |
| 183 |
omp::directive (single copyprivate (p) firstprivate (f) allocate (f)))]] |
| 184 |
p = 6; |
| 185 |
[[omp::directive (target parallel |
| 186 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 187 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 188 |
nowait depend(inout: dd[0]) allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 189 |
; |
| 190 |
[[omp::directive (target parallel for |
| 191 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 192 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 193 |
lastprivate (l) linear (ll:1) ordered schedule(static, 4) collapse(1) nowait depend(inout: dd[0]) |
| 194 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 195 |
for (int i = 0; i < 64; i++) |
| 196 |
ll++; |
| 197 |
[[omp::directive (target parallel for |
| 198 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 199 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 200 |
lastprivate (l) linear (ll:1) schedule(static, 4) collapse(1) nowait depend(inout: dd[0]) order(concurrent) |
| 201 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 202 |
for (int i = 0; i < 64; i++) |
| 203 |
ll++; |
| 204 |
[[omp::sequence (omp::directive (target parallel for simd |
| 205 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 206 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 207 |
lastprivate (l) linear (ll:1) schedule(static, 4) collapse(1) |
| 208 |
safelen(8) simdlen(4) aligned(q: 32) nowait depend(inout: dd[0]) nontemporal(ntm) if (simd: i3) order(concurrent) |
| 209 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda)))]] |
| 210 |
for (int i = 0; i < 64; i++) |
| 211 |
ll++; |
| 212 |
[[omp::sequence (directive (target teams |
| 213 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 214 |
shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) nowait depend(inout: dd[0]) |
| 215 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda)))]] |
| 216 |
; |
| 217 |
[[omp::sequence (directive (target |
| 218 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 219 |
nowait depend(inout: dd[0]) allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda)))]] |
| 220 |
; |
| 221 |
[[omp::sequence (omp::directive (target teams distribute |
| 222 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 223 |
shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) order(concurrent) |
| 224 |
collapse(1) dist_schedule(static, 16) nowait depend(inout: dd[0]) allocate (omp_default_mem_alloc:f) in_reduction(+:r2) |
| 225 |
has_device_addr (hda)))]] |
| 226 |
for (int i = 0; i < 64; i++) |
| 227 |
; |
| 228 |
[[omp::directive (target teams distribute parallel for |
| 229 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 230 |
shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 231 |
collapse(1) dist_schedule(static, 16) |
| 232 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 233 |
lastprivate (l) schedule(static, 4) nowait depend(inout: dd[0]) order(concurrent) |
| 234 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 235 |
for (int i = 0; i < 64; i++) |
| 236 |
ll++; |
| 237 |
[[omp::directive (target teams distribute parallel for simd |
| 238 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 239 |
shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 240 |
collapse(1) dist_schedule(static, 16) |
| 241 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 242 |
lastprivate (l) schedule(static, 4) order(concurrent) |
| 243 |
safelen(8) simdlen(4) aligned(q: 32) nowait depend(inout: dd[0]) nontemporal(ntm) if (simd: i3) |
| 244 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 245 |
for (int i = 0; i < 64; i++) |
| 246 |
ll++; |
| 247 |
[[omp::directive (target teams distribute simd |
| 248 |
device(d) map (tofrom: m) if (i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 249 |
shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 250 |
collapse(1) dist_schedule(static, 16) order(concurrent) |
| 251 |
safelen(8) simdlen(4) aligned(q: 32) nowait depend(inout: dd[0]) nontemporal(ntm) |
| 252 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 253 |
for (int i = 0; i < 64; i++) |
| 254 |
ll++; |
| 255 |
[[omp::directive (target simd |
| 256 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 257 |
safelen(8) simdlen(4) lastprivate (l) linear(ll: 1) aligned(q: 32) reduction(+:r) |
| 258 |
nowait depend(inout: dd[0]) nontemporal(ntm) if(simd:i3) order(concurrent) |
| 259 |
allocate (omp_default_mem_alloc:f) in_reduction(+:r2) has_device_addr (hda))]] |
| 260 |
for (int i = 0; i < 64; i++) |
| 261 |
ll++; |
| 262 |
[[omp::sequence (directive (taskgroup task_reduction(+:r2) allocate (r2)), |
| 263 |
omp::directive (taskloop simd |
| 264 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) if(simd: i2) final(fi) mergeable priority (pp) |
| 265 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) in_reduction(+:r2) nontemporal(ntm) |
| 266 |
order(concurrent) allocate (f)))]] |
| 267 |
for (int i = 0; i < 64; i++) |
| 268 |
ll++; |
| 269 |
[[omp::sequence (omp::directive (taskgroup task_reduction(+:r) allocate (r)), |
| 270 |
directive (taskloop simd |
| 271 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(i1) final(fi) mergeable nogroup priority (pp) |
| 272 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) in_reduction(+:r) nontemporal(ntm) |
| 273 |
order(concurrent) allocate (f)))]] |
| 274 |
for (int i = 0; i < 64; i++) |
| 275 |
ll++; |
| 276 |
[[omp::directive (taskwait)]]; |
| 277 |
[[omp::directive (taskloop simd |
| 278 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) if(taskloop: i1) final(fi) priority (pp) |
| 279 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(+:r) if (simd: i3) nontemporal(ntm) |
| 280 |
order(concurrent) allocate (f))]] |
| 281 |
for (int i = 0; i < 64; i++) |
| 282 |
ll++; |
| 283 |
[[omp::sequence (directive (taskgroup task_reduction(+:r2) allocate (r2)), |
| 284 |
omp::directive (taskloop |
| 285 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) final(fi) mergeable priority (pp) |
| 286 |
reduction(default, +:r) in_reduction(+:r2) allocate (f)))]] |
| 287 |
for (int i = 0; i < 64; i++) |
| 288 |
ll++; |
| 289 |
[[omp::sequence (directive (taskgroup task_reduction(+:r2) allocate (r2)), |
| 290 |
omp::directive (task |
| 291 |
private (p) firstprivate (f) shared (s) default(shared) untied if(task: i1) final(fi) mergeable priority (pp) |
| 292 |
in_reduction(+:r2) allocate (f)))]] |
| 293 |
; |
| 294 |
[[omp::directive (taskyield)]]; |
| 295 |
[[omp::directive (target data if (target data: i1) device(d) map (tofrom: m) use_device_ptr (q) use_device_addr (p))]] |
| 296 |
; |
| 297 |
[[omp::directive (target enter data if (target enter data: i1) device(d) map (to: m) depend(inout: dd[0]) nowait)]] |
| 298 |
; |
| 299 |
[[omp::directive (target exit data if (target exit data: i1) device(d) map (from: m) depend(inout: dd[0]) nowait)]] |
| 300 |
; |
| 301 |
[[omp::directive (target update if (target update: i1) device(d) to (m) depend(inout: dd[0]) nowait)]] |
| 302 |
; |
| 303 |
[[omp::directive (target update if (target update: i1) device(d) from (m) depend(inout: dd[0]) nowait)]] |
| 304 |
; |
| 305 |
[[omp::directive (taskwait)]]; |
| 306 |
[[omp::sequence (directive (target nowait depend(inout: dd[0]) in_reduction(+:r2)), |
| 307 |
directive (teams distribute |
| 308 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 309 |
collapse(1) dist_schedule(static, 16) allocate (omp_default_mem_alloc: f) order(concurrent)))]] |
| 310 |
for (int i = 0; i < 64; i++) |
| 311 |
; |
| 312 |
[[omp::directive (teams |
| 313 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 314 |
allocate (omp_default_mem_alloc: f))]] |
| 315 |
; |
| 316 |
[[omp::sequence (omp::directive (target), |
| 317 |
omp::directive (teams distribute parallel for |
| 318 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 319 |
collapse(1) dist_schedule(static, 16) |
| 320 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 321 |
lastprivate (l) schedule(static, 4) order(concurrent) allocate (omp_default_mem_alloc: f)))]] |
| 322 |
for (int i = 0; i < 64; i++) |
| 323 |
ll++; |
| 324 |
[[omp::sequence (directive (target), |
| 325 |
directive (teams distribute parallel for simd |
| 326 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 327 |
collapse(1) dist_schedule(static, 16) |
| 328 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 329 |
lastprivate (l) schedule(static, 4) order(concurrent) |
| 330 |
safelen(8) simdlen(4) aligned(q: 32) if (simd: i3) nontemporal(ntm) |
| 331 |
allocate (omp_default_mem_alloc: f)))]] |
| 332 |
for (int i = 0; i < 64; i++) |
| 333 |
ll++; |
| 334 |
[[omp::sequence (directive (target), |
| 335 |
directive (teams distribute simd |
| 336 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 337 |
collapse(1) dist_schedule(static, 16) order(concurrent) |
| 338 |
safelen(8) simdlen(4) aligned(q: 32) if(i3) nontemporal(ntm) |
| 339 |
allocate (omp_default_mem_alloc: f)))]] |
| 340 |
for (int i = 0; i < 64; i++) |
| 341 |
ll++; |
| 342 |
[[omp::directive (teams distribute parallel for |
| 343 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 344 |
collapse(1) dist_schedule(static, 16) |
| 345 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 346 |
lastprivate (l) schedule(static, 4) copyin(t) allocate (f))]] |
| 347 |
for (int i = 0; i < 64; i++) |
| 348 |
ll++; |
| 349 |
[[omp::directive (teams distribute parallel for |
| 350 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 351 |
collapse(1) dist_schedule(static, 16) order(concurrent) |
| 352 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 353 |
lastprivate (l) schedule(static, 4) allocate (f))]] |
| 354 |
for (int i = 0; i < 64; i++) |
| 355 |
ll++; |
| 356 |
[[omp::directive (teams distribute parallel for simd |
| 357 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 358 |
collapse(1) dist_schedule(static, 16) |
| 359 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 360 |
lastprivate (l) schedule(static, 4) |
| 361 |
safelen(8) simdlen(4) aligned(q: 32) if (simd: i3) nontemporal(ntm) copyin(t) |
| 362 |
allocate (f))]] |
| 363 |
for (int i = 0; i < 64; i++) |
| 364 |
ll++; |
| 365 |
[[omp::directive (teams distribute parallel for simd |
| 366 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 367 |
collapse(1) dist_schedule(static, 16) |
| 368 |
if (parallel: i2) num_threads (nth) proc_bind(spread) |
| 369 |
lastprivate (l) schedule(static, 4) order(concurrent) |
| 370 |
safelen(8) simdlen(4) aligned(q: 32) if (simd: i3) nontemporal(ntm) |
| 371 |
allocate (f))]] |
| 372 |
for (int i = 0; i < 64; i++) |
| 373 |
ll++; |
| 374 |
[[omp::directive (teams distribute simd |
| 375 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte-1:nte) thread_limit(tl) |
| 376 |
collapse(1) dist_schedule(static, 16) order(concurrent) |
| 377 |
safelen(8) simdlen(4) aligned(q: 32) if(i3) nontemporal(ntm) allocate(f))]] |
| 378 |
for (int i = 0; i < 64; i++) |
| 379 |
ll++; |
| 380 |
[[omp::directive (parallel master |
| 381 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) reduction(+:r) |
| 382 |
num_threads (nth) proc_bind(spread) copyin(t) allocate (f))]] |
| 383 |
; |
| 384 |
[[omp::directive (parallel masked |
| 385 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) reduction(+:r) |
| 386 |
num_threads (nth) proc_bind(spread) copyin(t) allocate (f) filter (d))]] |
| 387 |
; |
| 388 |
[[omp::directive (parallel |
| 389 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) reduction(+:r) |
| 390 |
num_threads (nth) proc_bind(spread) copyin(t) allocate (f))]] |
| 391 |
; |
| 392 |
[[omp::sequence (directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 393 |
omp::directive (master taskloop |
| 394 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) final(fi) mergeable priority (pp) |
| 395 |
reduction(default, +:r) in_reduction(+:r2) allocate (f)))]] |
| 396 |
for (int i = 0; i < 64; i++) |
| 397 |
ll++; |
| 398 |
[[omp::sequence (directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 399 |
omp::directive (masked taskloop |
| 400 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) final(fi) mergeable priority (pp) |
| 401 |
reduction(default, +:r) in_reduction(+:r2) allocate (f) filter (d)))]] |
| 402 |
for (int i = 0; i < 64; i++) |
| 403 |
ll++; |
| 404 |
[[omp::directive (master)]]; |
| 405 |
[[omp::directive (masked)]]; |
| 406 |
[[omp::directive (masked filter (d))]]; |
| 407 |
[[omp::sequence (omp::directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 408 |
directive (master taskloop simd |
| 409 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) if(simd: i2) final(fi) mergeable priority (pp) |
| 410 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) in_reduction(+:r2) nontemporal(ntm) |
| 411 |
order(concurrent) allocate (f)))]] |
| 412 |
for (int i = 0; i < 64; i++) |
| 413 |
ll++; |
| 414 |
[[omp::sequence (omp::directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 415 |
directive (masked taskloop simd |
| 416 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) if(simd: i2) final(fi) mergeable priority (pp) |
| 417 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) in_reduction(+:r2) nontemporal(ntm) |
| 418 |
order(concurrent) allocate (f) filter (d)))]] |
| 419 |
for (int i = 0; i < 64; i++) |
| 420 |
ll++; |
| 421 |
[[omp::directive (parallel master taskloop |
| 422 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) final(fi) mergeable priority (pp) |
| 423 |
reduction(default, +:r) if (parallel: i2) num_threads (nth) proc_bind(spread) copyin(t) allocate (f))]] |
| 424 |
for (int i = 0; i < 64; i++) |
| 425 |
ll++; |
| 426 |
[[omp::directive (parallel masked taskloop |
| 427 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) final(fi) mergeable priority (pp) |
| 428 |
reduction(default, +:r) if (parallel: i2) num_threads (nth) proc_bind(spread) copyin(t) allocate (f) filter (d))]] |
| 429 |
for (int i = 0; i < 64; i++) |
| 430 |
ll++; |
| 431 |
[[omp::directive (parallel master taskloop simd |
| 432 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) if(simd: i2) final(fi) mergeable priority (pp) |
| 433 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) nontemporal(ntm) if (parallel: i2) num_threads (nth) proc_bind(spread) copyin(t) |
| 434 |
order(concurrent) allocate (f))]] |
| 435 |
for (int i = 0; i < 64; i++) |
| 436 |
ll++; |
| 437 |
[[omp::directive (parallel masked taskloop simd |
| 438 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) grainsize (g) collapse(1) untied if(taskloop: i1) if(simd: i2) final(fi) mergeable priority (pp) |
| 439 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) nontemporal(ntm) if (parallel: i2) num_threads (nth) proc_bind(spread) copyin(t) |
| 440 |
order(concurrent) allocate (f) filter (d))]] |
| 441 |
for (int i = 0; i < 64; i++) |
| 442 |
ll++; |
| 443 |
[[omp::sequence (directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 444 |
directive (master taskloop |
| 445 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 446 |
reduction(default, +:r) in_reduction(+:r2)))]] |
| 447 |
for (int i = 0; i < 64; i++) |
| 448 |
ll++; |
| 449 |
[[omp::sequence (directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 450 |
directive (masked taskloop |
| 451 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 452 |
reduction(default, +:r) in_reduction(+:r2) filter (d)))]] |
| 453 |
for (int i = 0; i < 64; i++) |
| 454 |
ll++; |
| 455 |
[[omp::sequence (omp::directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 456 |
omp::directive (master taskloop simd |
| 457 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 458 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) in_reduction(+:r2) nontemporal(ntm) |
| 459 |
order(concurrent) allocate (f)))]] |
| 460 |
for (int i = 0; i < 64; i++) |
| 461 |
ll++; |
| 462 |
[[omp::sequence (omp::directive (taskgroup task_reduction (+:r2) allocate (r2)), |
| 463 |
omp::directive (masked taskloop simd |
| 464 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 465 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) in_reduction(+:r2) nontemporal(ntm) |
| 466 |
order(concurrent) allocate (f) filter (d)))]] |
| 467 |
for (int i = 0; i < 64; i++) |
| 468 |
ll++; |
| 469 |
[[omp::directive (parallel master taskloop |
| 470 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 471 |
reduction(default, +:r) num_threads (nth) proc_bind(spread) copyin(t) allocate (f))]] |
| 472 |
for (int i = 0; i < 64; i++) |
| 473 |
ll++; |
| 474 |
[[omp::directive (parallel masked taskloop |
| 475 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 476 |
reduction(default, +:r) num_threads (nth) proc_bind(spread) copyin(t) allocate (f) filter (d))]] |
| 477 |
for (int i = 0; i < 64; i++) |
| 478 |
ll++; |
| 479 |
[[omp::directive (parallel master taskloop simd |
| 480 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 481 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) nontemporal(ntm) num_threads (nth) proc_bind(spread) copyin(t) |
| 482 |
order(concurrent) allocate (f))]] |
| 483 |
for (int i = 0; i < 64; i++) |
| 484 |
ll++; |
| 485 |
[[omp::directive (parallel masked taskloop simd |
| 486 |
private (p) firstprivate (f) lastprivate (l) shared (s) default(shared) num_tasks (nta) collapse(1) untied if(i1) final(fi) mergeable priority (pp) |
| 487 |
safelen(8) simdlen(4) linear(ll: 1) aligned(q: 32) reduction(default, +:r) nontemporal(ntm) num_threads (nth) proc_bind(spread) copyin(t) |
| 488 |
order(concurrent) allocate (f) filter (d))]] |
| 489 |
for (int i = 0; i < 64; i++) |
| 490 |
ll++; |
| 491 |
[[omp::directive (loop bind(thread) order(concurrent) |
| 492 |
private (p) lastprivate (l) collapse(1) reduction(+:r))]] |
| 493 |
for (l = 0; l < 64; ++l) |
| 494 |
ll++; |
| 495 |
[[omp::directive (parallel loop |
| 496 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 497 |
lastprivate (l) collapse(1) bind(parallel) order(concurrent) allocate (f))]] |
| 498 |
for (l = 0; l < 64; l++) |
| 499 |
ll++; |
| 500 |
[[omp::directive (parallel loop |
| 501 |
private (p) firstprivate (f) if (parallel: i2) default(shared) shared(s) copyin(t) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 502 |
lastprivate (l) collapse(1) allocate (f))]] |
| 503 |
for (l = 0; l < 64; l++) |
| 504 |
ll++; |
| 505 |
[[omp::directive (teams loop |
| 506 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) |
| 507 |
collapse(1) lastprivate (l) bind(teams) allocate (f))]] |
| 508 |
for (l = 0; l < 64; ++l) |
| 509 |
; |
| 510 |
[[omp::directive (teams loop |
| 511 |
private(p) firstprivate (f) shared(s) default(shared) reduction(+:r) num_teams(nte - 1:nte) thread_limit(tl) |
| 512 |
collapse(1) lastprivate (l) order(concurrent) allocate (f))]] |
| 513 |
for (l = 0; l < 64; ++l) |
| 514 |
; |
| 515 |
[[omp::directive (target parallel loop |
| 516 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 517 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 518 |
nowait depend(inout: dd[0]) lastprivate (l) bind(parallel) order(concurrent) collapse(1) |
| 519 |
allocate (omp_default_mem_alloc: f) in_reduction(+:r2) has_device_addr (hda))]] |
| 520 |
for (l = 0; l < 64; ++l) |
| 521 |
; |
| 522 |
[[omp::directive (target parallel loop |
| 523 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 524 |
if (parallel: i2) default(shared) shared(s) reduction(+:r) num_threads (nth) proc_bind(spread) |
| 525 |
nowait depend(inout: dd[0]) lastprivate (l) order(concurrent) collapse(1) |
| 526 |
allocate (omp_default_mem_alloc: f) in_reduction(+:r2) has_device_addr (hda))]] |
| 527 |
for (l = 0; l < 64; ++l) |
| 528 |
; |
| 529 |
[[omp::directive (target teams loop |
| 530 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 531 |
shared(s) default(shared) reduction(+:r) num_teams(nte) thread_limit(tl) nowait depend(inout: dd[0]) |
| 532 |
lastprivate (l) bind(teams) collapse(1) |
| 533 |
allocate (omp_default_mem_alloc: f) in_reduction(+:r2) has_device_addr (hda))]] |
| 534 |
for (l = 0; l < 64; ++l) |
| 535 |
; |
| 536 |
[[omp::directive (target teams loop |
| 537 |
device(d) map (tofrom: m) if (target: i1) private (p) firstprivate (f) defaultmap(tofrom: scalar) is_device_ptr (idp) |
| 538 |
shared(s) default(shared) reduction(+:r) num_teams(nte - 1 : nte) thread_limit(tl) nowait depend(inout: dd[0]) |
| 539 |
lastprivate (l) order(concurrent) collapse(1) |
| 540 |
allocate (omp_default_mem_alloc: f) in_reduction(+:r2) has_device_addr (hda))]] |
| 541 |
for (l = 0; l < 64; ++l) |
| 542 |
; |
| 543 |
[[omp::directive (critical)]] { |
| 544 |
} |
| 545 |
[[omp::directive (critical (foobar) hint(omp_sync_hint_none))]] |
| 546 |
; |
| 547 |
[[omp::directive (taskwait depend (inout: dd[0]))]] |
| 548 |
; |
| 549 |
[[omp::directive (taskgroup task_reduction(+:r2) allocate (r2))]] |
| 550 |
; |
| 551 |
[[omp::directive (atomic update seq_cst hint(omp_sync_hint_none))]] |
| 552 |
p++; |
| 553 |
[[omp::directive (atomic read hint(omp_sync_hint_none) relaxed)]] |
| 554 |
f = p; |
| 555 |
[[omp::directive (atomic write release hint(omp_sync_hint_none))]] |
| 556 |
p = f; |
| 557 |
[[omp::directive (flush)]] |
| 558 |
; |
| 559 |
[[omp::directive (flush acq_rel)]] |
| 560 |
; |
| 561 |
[[omp::directive (flush acquire)]] |
| 562 |
; |
| 563 |
[[omp::directive (flush release)]] |
| 564 |
; |
| 565 |
[[omp::directive (flush seq_cst)]] |
| 566 |
; |
| 567 |
[[omp::directive (flush (p, f))]] |
| 568 |
; |
| 569 |
[[omp::directive (simd |
| 570 |
private (p) lastprivate (l) linear (ll:1) reduction(+:r) collapse(1) safelen(8) simdlen(4) aligned(q: 32) |
| 571 |
nontemporal(ntm) if(i1))]] |
| 572 |
for (int i = 0; i < 64; i++) |
| 573 |
[[omp::directive (ordered simd)]] |
| 574 |
ll++; |
| 575 |
[[omp::directive (for |
| 576 |
private (p) firstprivate (f) lastprivate (l) linear (ll:1) reduction(+:r) schedule(static, 4) collapse(1) nowait |
| 577 |
ordered allocate (f))]] |
| 578 |
for (int i = 0; i < 64; i++) |
| 579 |
[[omp::directive (ordered threads)]] |
| 580 |
ll++; |
| 581 |
[[omp::directive(for ordered (1))]] |
| 582 |
for (l = 0; l < 64; l++) |
| 583 |
{ |
| 584 |
[[omp::directive(ordered depend (sink: l - 1))]]; |
| 585 |
[[omp::directive(ordered depend (source))]]; |
| 586 |
} |
| 587 |
extern omp_depend_t depobj; |
| 588 |
[[omp::directive (depobj(depobj) depend(in : dd[0]))]]; |
| 589 |
[[omp::directive (parallel)]] { |
| 590 |
if (p) { |
| 591 |
[[omp::directive (cancel parallel)]]; |
| 592 |
} else { |
| 593 |
[[omp::directive (cancellation point parallel)]]; |
| 594 |
} |
| 595 |
} |
| 596 |
[[omp::directive (scope private (p) firstprivate (f) reduction(+:r) nowait |
| 597 |
allocate (omp_default_mem_alloc: r))]] |
| 598 |
; |
| 599 |
[[omp::directive (scope private (p) firstprivate (f) reduction(task, +:r) |
| 600 |
allocate (omp_default_mem_alloc: f))]] |
| 601 |
; |
| 602 |
extern int t2; |
| 603 |
[[omp::directive (threadprivate (t2))]]; |
| 604 |
extern int t2; |
| 605 |
[[omp::directive (declare reduction (dr: int: omp_out += omp_in) initializer (omp_priv = 0))]] |
| 606 |
; |
| 607 |
[[omp::directive (parallel)]] |
| 608 |
if (0) |
| 609 |
; |
| 610 |
[[omp::directive (parallel)]] |
| 611 |
while (0) |
| 612 |
; |
| 613 |
[[omp::directive (parallel)]] |
| 614 |
switch (0) { case 1: break; default: break; } |
| 615 |
[[omp::directive (assume no_openmp no_openmp_routines no_parallelism |
| 616 |
absent (atomic, barrier, cancel, cancellation point) |
| 617 |
absent (critical, depobj) |
| 618 |
absent (distribute, flush, loop, masked, master, nothing, ordered) |
| 619 |
absent (parallel, scan, scope, section, sections, simd, single, task) |
| 620 |
absent (taskgroup, taskloop, taskwait, taskyield) |
| 621 |
absent (target, teams, for, error) holds (n1 < n2))]] |
| 622 |
if (0) |
| 623 |
; |
| 624 |
[[omp::sequence (omp::directive (assume contains (simd)), |
| 625 |
omp::directive (for simd))]] |
| 626 |
for (int i = 0; i < 64; i++) |
| 627 |
; |
| 628 |
} |
| 629 |
|
| 630 |
void corge1 (); |
| 631 |
|
| 632 |
void |
| 633 |
corge () |
| 634 |
{ |
| 635 |
[[omp::directive (declare variant (corge1) match (construct={parallel,for}))]] |
| 636 |
extern void corge2 (); |
| 637 |
[[omp::sequence (directive (parallel), directive (for))]] |
| 638 |
for (int i = 0; i < 5; i++) |
| 639 |
corge2 (); |
| 640 |
[[omp::directive (declare simd simdlen(4) linear(l) aligned(p:4) uniform(p) inbranch), |
| 641 |
omp::directive (declare simd simdlen(8) notinbranch)]] |
| 642 |
extern int corge3 (int l, int *p); |
| 643 |
[[omp::directive (declare simd simdlen(4) linear(l) aligned(p:4) uniform(p) inbranch), |
| 644 |
omp::directive (declare simd simdlen(8) notinbranch)]] |
| 645 |
extern int corge4 (int l, int *p); |
| 646 |
[[omp::sequence (directive (declare simd simdlen(4) linear(l) aligned(p:4) uniform(p) inbranch), |
| 647 |
omp::directive (declare simd simdlen(8) notinbranch))]] |
| 648 |
extern int corge5 (int l, int *p); |
| 649 |
[[omp::directive (declare target)]]; |
| 650 |
extern void corge6 (); |
| 651 |
[[omp::directive (end declare target)]]; |
| 652 |
} |
| 653 |
|
| 654 |
int |
| 655 |
garply (int a, int *c, int *d, int *e, int *f) |
| 656 |
{ |
| 657 |
int i; |
| 658 |
[[omp::directive (simd reduction (inscan, +: a))]] |
| 659 |
for (i = 0; i < 64; i++) |
| 660 |
{ |
| 661 |
d[i] = a; |
| 662 |
[[omp::directive (scan exclusive (a))]] |
| 663 |
a += c[i]; |
| 664 |
} |
| 665 |
[[omp::directive (simd reduction (inscan, +: a))]] |
| 666 |
for (i = 0; i < 64; i++) |
| 667 |
{ |
| 668 |
a += c[i]; |
| 669 |
[[omp::sequence (omp::sequence (omp::directive (scan inclusive (a))))]] |
| 670 |
d[i] = a; |
| 671 |
} |
| 672 |
return a; |
| 673 |
} |