1 // RUN: %libomptarget-compilexx-run-and-check-generic
3 // UNSUPPORTED: aarch64-unknown-linux-gnu
4 // UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
5 // UNSUPPORTED: nvptx64-nvidia-cuda
6 // UNSUPPORTED: nvptx64-nvidia-cuda-LTO
7 // UNSUPPORTED: x86_64-pc-linux-gnu
8 // UNSUPPORTED: x86_64-pc-linux-gnu-LTO
9 // UNSUPPORTED: amdgcn-amd-amdhsa
18 for (int i
= 0; i
< N
; i
++)
24 #pragma omp target teams distribute parallel for num_teams(256) \
25 schedule(static, 1) map(to \
29 for (int i
= 0; i
< N
; i
++) {
35 // CHECK: SUM = 1000000
36 printf("SUM = %d\n", sum
[0]);