/* * @@name: declare_target.3c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success */ #define N 1000 #pragma omp declare target float p[N], v1[N], v2[N]; #pragma omp end declare target extern void init(float *, float *, int); extern void output(float *, int); void vec_mult() { int i; init(v1, v2, N); #pragma omp target update to(v1, v2) #pragma omp target #pragma omp parallel for for (i=0; i