- Timestamp:
- 10/11/21 14:41:56 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/pool_ressource.cpp
r2208 r2246 6 6 #include "type.hpp" 7 7 #include "cxios.hpp" 8 #include "timer.hpp" 8 9 9 10 namespace xios … … 16 17 MPI_Comm_rank(poolComm, &commRank) ; 17 18 MPI_Comm_size(poolComm, &commSize) ; 18 19 19 info(40)<<"CPoolRessource::CPoolRessource : creating new pool : "<<Id<<endl ; 20 20 if (commRank==localLeader_) 21 21 { … … 51 51 occupancy_.erase(occupancy_.begin(),it) ; 52 52 occupancy_.insert(procs_update.begin(),procs_update.end()) ; 53 53 54 info(40)<<"CPoolRessource::createService : notify createService to all pool members ; serviceId : "<<serviceId<<endl ; 54 55 for(int rank=0; rank<commSize; rank++) 55 56 { … … 102 103 bool CPoolRessource::eventLoop(bool serviceOnly) 103 104 { 104 checkCreateServiceNotification() ; 105 CTimer::get("CPoolRessource::eventLoop").resume(); 106 107 double time=MPI_Wtime() ; 108 if (time-lastEventLoop_ > eventLoopLatency_) 109 { 110 checkCreateServiceNotification() ; 111 lastEventLoop_=time ; 112 } 113 105 114 for (auto it=services_.begin(); it!=services_.end() ; ++it) 106 115 { … … 112 121 } 113 122 } 114 123 CTimer::get("CPoolRessource::eventLoop").suspend(); 115 124 if (services_.empty() && finalizeSignal_) return true ; 116 125 else return false ; … … 137 146 void CPoolRessource::createNewService(const std::string& serviceId, int type, int size, int nbPartitions, bool in) 138 147 { 148 149 info(40)<<"CPoolRessource::createNewService : receive createService notification ; serviceId : "<<serviceId<<endl ; 139 150 MPI_Comm serviceComm, newServiceComm ; 140 151 int commRank ;
Note: See TracChangeset
for help on using the changeset viewer.