Ignore:
Timestamp:
11/13/14 15:09:14 (9 years ago)
Author:
mhnguyen
Message:

Implementing buffer size auto-detection for mode client -server

+) Process xml tree in client side then send all the information to server
+) Only information enabled fields in enabled files are sent to server
+) Some important change in structure of code which must be refactored

Test
+) On Curie
+) Only mode client-server
+) Passed for all tests

File:
1 edited

Legend:

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

    r501 r509  
    55#include "buffer_out.hpp" 
    66#include "mpi.hpp" 
     7#include "cxios.hpp" 
    78 
    89namespace xios 
    910{ 
    1011  extern size_t maxRequestSize ; 
    11    
     12 
    1213  class CClientBuffer 
    1314  { 
    14      
     15 
    1516    public: 
    16      
    17     CClientBuffer(MPI_Comm intercomm,int serverRank) ; 
     17 
     18    CClientBuffer(MPI_Comm intercomm,int serverRank, StdSize bfSize = CXios::bufferSize) ; 
    1819    ~CClientBuffer() ; 
    1920    bool isBufferFree(int size) ; 
    20     CBufferOut*  getBuffer(int size) ;     
     21    CBufferOut*  getBuffer(int size) ; 
    2122    bool checkBuffer(void) ; 
    2223    bool hasPendingRequest(void) ; 
    23      
     24 
    2425    char* buffer[2] ; 
    2526    int remain(void) ; 
     
    3031    int serverRank ; 
    3132    bool pending ; 
    32      
     33 
    3334    size_t bufferSizeByServer ; 
    34      
     35 
    3536    MPI_Request request ; 
    36      
    37     CBufferOut* retBuffer;     
     37 
     38    CBufferOut* retBuffer; 
    3839    MPI_Comm interComm ; 
    3940  } ; 
Note: See TracChangeset for help on using the changeset viewer.