Changeset 2547 for XIOS3/trunk/src/transport/one_sided_context_server.cpp
- Timestamp:
- 08/29/23 17:24:04 (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/transport/one_sided_context_server.cpp
r2526 r2547 42 42 finished=false; 43 43 44 if (!isAttachedModeEnabled())MPI_Intercomm_merge(interComm_,true,&interCommMerged_) ;44 MPI_Intercomm_merge(interComm_,true,&interCommMerged_) ; 45 45 MPI_Comm_split(intraComm_, intraCommRank, intraCommRank, &commSelf_) ; // for windows 46 46 … … 48 48 49 49 pureOneSided=CXios::getin<bool>("pure_one_sided",false); // pure one sided communication (for test) 50 if (isAttachedModeEnabled()) pureOneSided=false ; // no one sided in attach mode51 50 52 51 } … … 165 164 166 165 if (isProcessingEvent_) return ; 167 if (isAttachedModeEnabled())168 if (!CXios::getDaemonsManager()->isScheduledContext(remoteHashId_)) return ;169 166 170 167 auto it=completedEvents_.find(currentTimeLine); … … 174 171 if (it->second.nbSenders == it->second.currentNbSenders) 175 172 { 176 if (!scheduled && !isAttachedModeEnabled()) // Skip event scheduling for attached mode and reception on client side173 if (!scheduled) 177 174 { 178 175 eventScheduler_->registerEvent(currentTimeLine,hashId); 179 176 scheduled=true; 180 177 } 181 else if ( isAttachedModeEnabled() ||eventScheduler_->queryEvent(currentTimeLine,hashId) )178 else if (eventScheduler_->queryEvent(currentTimeLine,hashId) ) 182 179 { 183 180 //if (!enableEventsProcessing && isCollectiveEvent(event)) return ; … … 198 195 } 199 196 200 if (!isAttachedModeEnabled())eventScheduler_->popEvent() ;197 eventScheduler_->popEvent() ; 201 198 202 199 isProcessingEvent_=true ; … … 214 211 currentTimeLine++; 215 212 scheduled = false; 216 if (isAttachedModeEnabled()) CXios::getDaemonsManager()->unscheduleContext() ;217 213 } 218 214 } … … 235 231 void COneSidedContextServer::freeWindows() 236 232 { 237 //if (!isAttachedModeEnabled())238 //{239 233 // for(auto& it : winComm_) 240 234 // { … … 244 238 // MPI_Comm_free(&winComm_[rank]) ; 245 239 // } 246 //}247 240 } 248 241
Note: See TracChangeset
for help on using the changeset viewer.