1 // RUN: %libomp-compile
2 // RUN: env OMP_NUM_THREADS=1 LIBOMP_USE_HIDDEN_HELPER_TASK=1 \
3 // RUN: LIBOMP_NUM_HIDDEN_HELPER_THREADS=8 %libomp-run
15 for (int n
= 0; n
< 10; ++n
) {
16 for (int k
= 0; k
< Nz
; ++k
) {
19 #pragma omp parallel shared(a)
23 #pragma omp target teams distribute parallel for nowait device(DEVICE_ID) \
24 map(tofrom : a[0 : 8])
25 for (int i
= 0; i
< Nz
; ++i
) {
31 for (int k
= 0; k
< Nz
; ++k
) {
32 printf("a[%d] = %d\n", k
, a
[k
]);