/* * @@name: target_pointer_map.1 * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success */ #include #include #define N 100 int main() { int *ptr1; int *ptr2; int *ptr3; int aray[N]; ptr1 = (int *)malloc(sizeof(int)*N); ptr2 = (int *)malloc(sizeof(int)*N); #pragma omp target map(ptr1, ptr1[:N]) map(ptr2[:N] ) { for (int i=0; i