1 // RUN: %libomptarget-compilexx-run-and-check-generic
2 // RUN: %libomptarget-compileoptxx-run-and-check-generic
4 // FIXME: This is a bug in host offload, this should run fine.
5 // UNSUPPORTED: aarch64-unknown-linux-gnu
6 // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
7 // UNSUPPORTED: x86_64-pc-linux-gnu
8 // UNSUPPORTED: x86_64-pc-linux-gnu-LTO
16 std::vector
<int> avec(N
);
18 #pragma omp parallel for
19 for (int i
= 0; i
< N
; i
++) {
21 #pragma omp target teams distribute parallel for reduction(+ : a[i])
22 for (int j
= 0; j
< N
; j
++)
34 for (int i
= 0; i
< N
; i
++)
35 std::cout
<< a
[i
] << std::endl
;