Ignore:
Timestamp:
06/09/16 11:33:08 (8 years ago)
Author:
mhnguyen
Message:

Optimizing codes: Change the way to compute distribution of grid

+) Instead of using DHT on grid, we make use of it only for elements of grid
+) Make change to calculation of server distribution.

Test
+) On Curie
+) Two times faster than the precedent commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/server_distribution_description.hpp

    r815 r865  
    3939    void computeServerDistribution(bool doComputeGlobalIndex = false, int positionDimensionDistributed = 1); 
    4040    void computeServerGlobalIndexInRange(const std::pair<size_t, size_t>& indexBeginEnd, int positionDimensionDistributed = 1); 
     41    void computeServerGlobalByElement(std::vector<boost::unordered_map<size_t,std::vector<int> > >& indexServerOnElement, 
     42                                      int rank, 
     43                                      int clientSize, 
     44                                      const CArray<bool,1>& axisDomainOrder, 
     45                                      int positionDimensionDistributed = 1); 
    4146 
    4247    std::vector<std::vector<int> > getServerIndexBegin() const; 
     
    4954    void computeBandDistribution(int nServer, int positionDimensionDistributed = 1); 
    5055    void computePlanDistribution(int nServer); 
     56    void computeRangeProcIndex(int clientRank, 
     57                               int clientSize, 
     58                               int rangeProcSize, 
     59                               int& rangeBegin, 
     60                               int& rangeSize); 
    5161 
    5262  private: 
Note: See TracChangeset for help on using the changeset viewer.