1 /* { dg-additional-options "-fopt-info-note-omp" }
2 { dg-additional-options "--param=openacc-privatization=noisy" }
3 { dg-additional-options "-foffload=-fopt-info-note-omp" }
4 { dg-additional-options "-foffload=--param=openacc-privatization=noisy" }
5 for testing/documenting aspects of that functionality. */
7 /* { dg-additional-options "-Wopenacc-parallelism" } for testing/documenting
8 aspects of that functionality. */
20 for (int i
= 0; i
< 32; i
++)
23 #pragma acc parallel num_gangs (32) copy (ok) firstprivate (val) copy(ary, ondev)
24 /* { dg-note {variable 'i' declared in block isn't candidate for adjusting OpenACC privatization level: not addressable} "" { target *-*-* } .-1 } */
26 ondev
= acc_on_device (acc_device_not_host
);
27 #pragma acc loop gang(static:1)
28 /* { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} "" { target *-*-* } .-1 } */
29 for (unsigned i
= 0; i
< 32; i
++)
45 for (int i
= 0; i
< 32; i
++)
57 #pragma acc data copy(val)
59 #pragma acc parallel present (val)
64 #pragma acc parallel firstprivate (val) copy(ok)
82 int n
= acc_get_device_type () != acc_device_host
? N
: 1;
85 for (i
= 0; i
< n
; i
++)
88 #pragma acc parallel num_gangs (n) firstprivate (a)
90 /* { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} "" { target *-*-* } .-1 } */
91 for (i
= 0; i
< n
; i
++)
97 for (i
= 0; i
< n
; i
++)
101 #pragma acc data copy (a)
103 #pragma acc parallel firstprivate (a) copyout (c)
109 /* This version of 'a' should still be 5. */
110 #pragma acc parallel copyout (d) present (a)
126 int x
= 5, i
, arr
[32];
128 for (i
= 0; i
< 32; i
++)
131 #pragma acc parallel firstprivate(x) copy(arr) num_gangs(32) num_workers(8) vector_length(32)
132 /* { dg-warning "region is worker partitioned but does not contain worker partitioned code" "" { target *-*-* } .-1 } */
133 /* { dg-warning "region is vector partitioned but does not contain vector partitioned code" "" { target *-*-* } .-2 } */
135 #pragma acc loop gang
136 /* { dg-note {variable 'i' in 'private' clause isn't candidate for adjusting OpenACC privatization level: not addressable} "" { target *-*-* } .-1 } */
137 for (i
= 0; i
< 32; i
++)
141 for (i
= 0; i
< 32; i
++)