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.
13 std::vector
<int> avec(N
);
15 #pragma omp parallel for
16 for (int i
= 0; i
< N
; i
++) {
18 #pragma omp target teams distribute parallel for reduction(+ : a[i])
19 for (int j
= 0; j
< N
; j
++)
31 for (int i
= 0; i
< N
; i
++)
32 std::cout
<< a
[i
] << std::endl
;