- Timestamp:
- 11/19/18 15:52:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/transformation/Functions/reduction.hpp
r1260 r1601 23 23 { 24 24 public: 25 static std::map<StdString,EReductionType> ReductionOperations;26 25 static std::map<StdString,EReductionType> *ReductionOperations_ptr; 26 #pragma omp threadprivate(ReductionOperations_ptr) 27 27 public: 28 28 CReductionAlgorithm() {} … … 61 61 typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 62 62 static CallBackMap* reductionCreationCallBacks_; 63 #pragma omp threadprivate(reductionCreationCallBacks_) 63 64 64 65 static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); … … 67 68 protected: 68 69 static bool initReductionOperation(std::map<StdString,EReductionType>& m); 70 static bool initReductionOperation(); 69 71 static bool _dummyInit; 72 #pragma omp threadprivate(_dummyInit) 70 73 }; 71 74
Note: See TracChangeset
for help on using the changeset viewer.