/* * @@name: target_struct_map.2 * @@type: C++ * @@operation: run * @@expect: success * @@version: omp_5.1 */ #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 begin declare target void SAXPY::saxpyfun(float *q) { for(int i=0; i