7 /* Exercise the kernel launch argument mapping. */
10 main (int argc
, char **argv
)
12 int a
[256], b
[256], c
[256], d
[256], e
[256], f
[256];
16 /* 48 is the size of the mappings for the first parallel construct. */
17 n
= sysconf (_SC_PAGESIZE
) / 48 - 1;
21 for (i
= 0; i
< n
; i
++)
23 #pragma acc parallel copy (a, b, c, d)
27 for (j
= 0; j
< 256; j
++)
37 #pragma acc parallel copy (a, b, c, d, e, f)
41 for (j
= 0; j
< 256; j
++)
52 for (i
= 0; i
< 256; i
++)
54 if (a
[i
] != i
) abort();
55 if (b
[i
] != i
) abort();
56 if (c
[i
] != i
) abort();
57 if (d
[i
] != i
) abort();
58 if (e
[i
] != i
) abort();
59 if (f
[i
] != i
) abort();