| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
#define N 256 |
| 4 |
|
| 5 |
void |
| 6 |
f (void) |
| 7 |
{ |
| 8 |
int i; |
| 9 |
int a[N]; |
| 10 |
|
| 11 |
#pragma omp metadirective \ |
| 12 |
when( device={kind(nohost)}: nothing ) \ |
| 13 |
when( device={arch("nvptx")}: nothing) \ |
| 14 |
default( parallel for) |
| 15 |
for (i = 0; i < N; i++) |
| 16 |
a[i] = i; |
| 17 |
} |