1 // RUN: %libomptarget-compile-run-and-check-generic
10 omp_alloc(N
* sizeof(int), llvm_omp_target_device_mem_alloc
);
12 #pragma omp target teams distribute parallel for is_device_ptr(device_ptr)
13 for (int i
= 0; i
< N
; ++i
) {
18 #pragma omp target parallel for reduction(+ : sum) is_device_ptr(device_ptr)
19 for (int i
= 0; i
< N
; ++i
)
26 omp_free(device_ptr
, llvm_omp_target_device_mem_alloc
);