Ignore:
Timestamp:
10/06/15 17:17:11 (9 years ago)
Author:
mhnguyen
Message:

Templated version of distributed hashed table

+) Implement DHT in more generic way to work with different type of information
+) Some old codes of DHT are kept to be a reference (they will be deleted soon)

Test
+) On local, mode attached, 8 processes
+) test_remap passes and result is correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/client_server_mapping_distributed.cpp

    r720 r721  
    33   \author Ha NGUYEN 
    44   \since 27 Feb 2015 
    5    \date 09 Mars 2015 
     5   \date 06 Oct 2015 
    66 
    77   \brief Mapping between index client and server. 
     
    1212#include <boost/functional/hash.hpp> 
    1313#include "utils.hpp" 
    14 #include "client_client_dht.hpp" 
    1514#include "mpi_tag.hpp" 
    1615 
     
    2928  computeHashIndex(); 
    3029 
    31   ccDHT_ = new CClientClientDHT(globalIndexOfServer, 
    32                                 clientIntraComm, 
    33                                 isDataDistributed); 
    34 //  const boost::unordered_map<size_t,int>& globalIndexToServerMappingTmp = clientDht.getGlobalIndexServerMapping(); 
    35 //  globalIndexToServerMapping_ = clientDht.getGlobalIndexServerMapping(); 
    36  
    37  
     30  ccDHT_ = new CClientClientDHTInt(globalIndexOfServer, 
     31                                   clientIntraComm, 
     32                                   isDataDistributed); 
    3833 
    3934//  computeDistributedServerIndex(globalIndexOfServer, clientIntraComm); 
     
    5146void CClientServerMappingDistributed::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient) 
    5247{ 
    53   ccDHT_->computeServerIndexMapping(globalIndexOnClient); 
    54   indexGlobalOnServer_ = ccDHT_->getGlobalIndexOnServer(); 
     48  ccDHT_->computeIndexInfoMapping(globalIndexOnClient); 
     49  indexGlobalOnServer_ = (ccDHT_->getInfoIndexMap()); 
    5550 
    5651/* 
Note: See TracChangeset for help on using the changeset viewer.