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_server.hpp

    r501 r509  
    55#include "buffer.hpp" 
    66#include "mpi.hpp" 
     7#include "cxios.hpp" 
    78 
    89namespace xios 
     
    1112  class CServerBuffer 
    1213  { 
    13      
     14 
    1415    public: 
    15      
    16     CServerBuffer(void) ; 
     16 
     17    CServerBuffer(StdSize bufSize = CXios::bufferSize) ; 
    1718    ~CServerBuffer() ; 
    1819    char* buffer ; 
    19      
     20 
    2021    bool isBufferFree(size_t count) ; 
    2122    void* getBuffer(size_t count) ; 
    2223    void freeBuffer(size_t count) ; 
    23    
     24 
    2425    size_t first ;   // first occupied element 
    2526    size_t current ; // first free element 
     
    2829    size_t bufferSizeByClient ; 
    2930  } ; 
    30    
     31 
    3132 
    3233} 
Note: See TracChangeset for help on using the changeset viewer.