Ignore:
Timestamp:
11/19/18 15:52:54 (5 years ago)
Author:
yushan
Message:

branch_openmp merged with trunk r1597

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/transformation/Functions/reduction.hpp

    r1260 r1601  
    2323{ 
    2424public: 
    25   static std::map<StdString,EReductionType> ReductionOperations; 
    26  
     25  static std::map<StdString,EReductionType> *ReductionOperations_ptr; 
     26  #pragma omp threadprivate(ReductionOperations_ptr) 
    2727public: 
    2828  CReductionAlgorithm() {} 
     
    6161  typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 
    6262  static CallBackMap* reductionCreationCallBacks_; 
     63  #pragma omp threadprivate(reductionCreationCallBacks_) 
    6364 
    6465  static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); 
     
    6768protected: 
    6869  static bool initReductionOperation(std::map<StdString,EReductionType>& m); 
     70  static bool initReductionOperation(); 
    6971  static bool _dummyInit; 
     72  #pragma omp threadprivate(_dummyInit) 
    7073}; 
    7174 
Note: See TracChangeset for help on using the changeset viewer.