/* * @@name: target_struct_map.2c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success */ #include #include #define N 100 #pragma omp declare target int a; #pragma omp end declare target int main(){ int i; int *p; #pragma omp target data map(p) { p = (int *)malloc(sizeof(int)*N); for (i=0; i