- Timestamp:
- 04/21/17 17:39:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/transformation/Functions/reduction.hpp
r1079 r1103 23 23 { 24 24 public: 25 static std::map<StdString,EReductionType> ReductionOperations; 25 //static std::map<StdString,EReductionType> ReductionOperations; 26 static std::map<StdString,EReductionType> *ReductionOperations_ptr; 27 #pragma omp threadprivate(ReductionOperations_ptr) 26 28 27 29 public: … … 59 61 typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 60 62 static CallBackMap* reductionCreationCallBacks_; 61 //#pragma omp threadprivate(reductionCreationCallBacks_)63 #pragma omp threadprivate(reductionCreationCallBacks_) 62 64 63 65 static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); … … 65 67 66 68 protected: 67 static bool initReductionOperation(std::map<StdString,EReductionType>& m); 69 //static bool initReductionOperation(std::map<StdString,EReductionType>& m); 70 static bool initReductionOperation(std::map<StdString,EReductionType>* m); 68 71 static bool _dummyInit; 69 //#pragma omp threadprivate(_dummyInit)72 #pragma omp threadprivate(_dummyInit) 70 73 }; 71 74
Note: See TracChangeset
for help on using the changeset viewer.