1 // RUN: %libomptarget-compilexx-generic && \
2 // RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic
3 // RUN: %libomptarget-compileoptxx-generic && \
4 // RUN: env LIBOMPTARGET_STACK_SIZE=2048 %libomptarget-run-generic
6 // We need malloc/global_alloc support
7 // UNSUPPORTED: amdgcn-amd-amdhsa
18 #pragma omp parallel num_threads(2)
24 #pragma omp target map(C)
27 #pragma omp parallel num_threads(2)
31 assert(C
>= 2 && C
<= 6);
33 std::cout
<< "PASS\n";