Ignore:
Timestamp:
06/20/18 09:09:23 (6 years ago)
Author:
ymipsl
Message:

New communication protocol between clients and servers, using hybrid mode of p2p mixt with one_sided communication in order to avoid dead-locking. The constraint of the maximum number of event that can be bufferized on client side is released.

Dev branch is created to be tested before merging.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_ONE_SIDED/src/buffer_server.hpp

    r717 r1547  
    1818      void* getBuffer(size_t count) ; 
    1919      void freeBuffer(size_t count) ; 
    20  
     20      void createWindows(MPI_Comm oneSidedComm) ; 
     21      bool freeWindows(void) ; 
     22      bool getBufferFromClient(size_t timeLine, char* & buffer, size_t& count) ; 
     23      bool isBufferEmpty(void) ; 
     24      void updateCurrentWindows(void) ; 
    2125    private: 
    2226      char* buffer; 
     
    2529      size_t end; 
    2630      size_t size; 
     31      size_t used ;  // count of element occupied 
     32      MPI_Win windows[2] ; 
     33      int currentWindows ; 
     34      bool hasWindows ; 
    2735  }; 
    2836} 
Note: See TracChangeset for help on using the changeset viewer.