Last change
on this file since 520 was
511,
checked in by mhnguyen, 10 years ago
|
Seperating database of context on "client" side and "server" side
+) Add one more context in contex client in case of attached mode
+) Do some minor changements to make sure everything fine in case of attached mode
+) Replace buffer group with the new options
Test
+) On Curie
+) Connection mode: Attached and seperated
+) File mode: one and multiple
+) All tests passed
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
1.2 KB
|
Rev | Line | |
---|
[300] | 1 | #ifndef __CONTEXT_SERVER_HPP__ |
---|
[327] | 2 | #define __CONTEXT_SERVER_HPP__ |
---|
[300] | 3 | #include "xmlioserver_spl.hpp" |
---|
| 4 | #include "event_server.hpp" |
---|
| 5 | #include "buffer_server.hpp" |
---|
[382] | 6 | #include "mpi.hpp" |
---|
[300] | 7 | |
---|
[335] | 8 | namespace xios |
---|
[300] | 9 | { |
---|
[345] | 10 | class CContext ; |
---|
[511] | 11 | |
---|
[300] | 12 | class CContextServer |
---|
| 13 | { |
---|
| 14 | public: |
---|
[511] | 15 | |
---|
[345] | 16 | CContextServer(CContext* parent,MPI_Comm intraComm,MPI_Comm interComm) ; |
---|
[300] | 17 | bool eventLoop(void) ; |
---|
| 18 | void listen(void) ; |
---|
| 19 | void checkPendingRequest(void) ; |
---|
| 20 | void processRequest(int rank, char* buff,int count) ; |
---|
| 21 | void processEvents(void) ; |
---|
| 22 | void dispatchEvent(CEventServer& event) ; |
---|
| 23 | void setPendingEvent(void) ; |
---|
| 24 | bool hasPendingEvent(void) ; |
---|
[511] | 25 | |
---|
[300] | 26 | MPI_Comm intraComm ; |
---|
| 27 | int intraCommSize ; |
---|
| 28 | int intraCommRank ; |
---|
[511] | 29 | |
---|
[300] | 30 | MPI_Comm interComm ; |
---|
| 31 | int commSize ; |
---|
[511] | 32 | |
---|
[300] | 33 | map<int,CServerBuffer*> buffers ; |
---|
| 34 | map<int,MPI_Request> pendingRequest ; |
---|
| 35 | map<int,char*> bufferRequest ; |
---|
[511] | 36 | |
---|
[300] | 37 | map<size_t,CEventServer*> events ; |
---|
| 38 | size_t currentTimeLine ; |
---|
[345] | 39 | CContext* context ; |
---|
[511] | 40 | |
---|
[300] | 41 | bool finished ; |
---|
| 42 | bool pendingEvent ; |
---|
[492] | 43 | bool scheduled ; /*!< event of current timeline is alreading scheduled ? */ |
---|
| 44 | size_t hashId ; |
---|
[511] | 45 | ~CContextServer() ; |
---|
| 46 | |
---|
| 47 | private: |
---|
| 48 | std::map<int, StdSize> mapBufferSize_; |
---|
[300] | 49 | } ; |
---|
| 50 | |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.