libgomp/testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c
raw| 1 | #include <stdlib.h> |
| 2 | #include <stdio.h> |
| 3 | |
| 4 | int |
| 5 | main (void) |
| 6 | { |
| 7 | #pragma acc parallel vector_length (64) num_workers (16) /* { dg-warning "using .num_workers \\(15\\)., ignoring 16" "" { target openacc_nvidia_accel_selected } } */ |
| 8 | { |
| 9 | #pragma acc loop worker |
| 10 | for (unsigned int i = 0; i < 32; i++) |
| 11 | #pragma acc loop vector |
| 12 | for (unsigned int j = 0; j < 64; j++) |
| 13 | ; |
| 14 | } |
| 15 | |
| 16 | return 0; |
| 17 | } |