Debian Codegraph @

gcc/testsuite/c-c++-common/goacc/parallel-dims-1.c

raw
1 /* Valid use of OpenACC parallelism dimensions clauses: num_gangs, num_workers,
2 vector_length. */
3
4 /* { dg-additional-options "-Wopenacc-parallelism" } for testing/documenting
5 aspects of that functionality. */
6
7 void f(int i)
8 {
9 #pragma acc kernels num_gangs(i) num_workers(i) vector_length(i)
10 ;
11
12 #pragma acc parallel num_gangs(i) num_workers(i) vector_length(i)
13 /* { dg-bogus "warning: region is gang partitioned but does not contain gang partitioned code" "TODO runtime" { xfail *-*-* } .-1 }
14 { dg-bogus "warning: region is worker partitioned but does not contain worker partitioned code" "TODO runtime" { xfail *-*-* } .-2 }
15 { dg-bogus "warning: region is vector partitioned but does not contain vector partitioned code" "TODO runtime" { xfail *-*-* } .-3 }
16 TODO 'region is [...] partitioned' isn't correct for 'i == 1'. */
17 ;
18 }