Ignore:
Timestamp:
11/16/17 16:20:41 (6 years ago)
Author:
yushan
Message:

dev_omp

File:
1 edited

Legend:

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

    r1328 r1331  
    2525  //static std::map<StdString,EReductionType> ReductionOperations; 
    2626  static std::map<StdString,EReductionType> *ReductionOperations_ptr; 
    27  
     27  #pragma omp threadprivate(ReductionOperations_ptr) 
    2828public: 
    2929  CReductionAlgorithm() {} 
     
    6262  typedef std::map<EReductionType, CreateOperationCallBack> CallBackMap; 
    6363  static CallBackMap* reductionCreationCallBacks_; 
     64  #pragma omp threadprivate(reductionCreationCallBacks_) 
    6465 
    6566  static bool registerOperation(EReductionType reduceType, CreateOperationCallBack createFn); 
     
    7071  static bool initReductionOperation(); 
    7172  static bool _dummyInit; 
     73  #pragma omp threadprivate(_dummyInit) 
    7274}; 
    7375 
Note: See TracChangeset for help on using the changeset viewer.