- Timestamp:
- 05/16/17 17:54:30 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/transformation/Functions/reduction.hpp
r1076 r1134 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: … … 60 62 typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 61 63 static CallBackMap* reductionCreationCallBacks_; 64 #pragma omp threadprivate(reductionCreationCallBacks_) 62 65 63 66 static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); … … 66 69 protected: 67 70 static bool initReductionOperation(std::map<StdString,EReductionType>& m); 71 static bool initReductionOperation(); 68 72 static bool _dummyInit; 73 #pragma omp threadprivate(_dummyInit) 69 74 }; 70 75
Note: See TracChangeset
for help on using the changeset viewer.