/* * @@name: target_struct_map.2cpp * @@type: C++ * @@compilable: yes * @@linkable: yes * @@expect: success */ #include #include #define N 100 class SAXPY { private: float a, b, *p; public: float buffer[N]; SAXPY(float arg_a, float arg_b){ a=arg_a; b=arg_b; } void driver(); void saxpyfun(float *p); }; #pragma omp declare target void SAXPY::saxpyfun(float *q) { for(int i=0; i