Changeset 2526
- Timestamp:
- 06/29/23 11:17:44 (19 months ago)
- Location:
- XIOS3/trunk/src/transport
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/transport/one_sided_client_buffer.cpp
r2399 r2526 8 8 extern CLogType logProtocol; 9 9 10 COneSidedClientBuffer::COneSidedClientBuffer(MPI_Comm& interComm, int serverRank, MPI_Comm& commSelf, MPI_Comm& interCommMerged, int intraServerRank) : interComm_(interComm), serverRank_(serverRank) 10 COneSidedClientBuffer::COneSidedClientBuffer(MPI_Comm& interComm, int serverRank, MPI_Comm& commSelf, MPI_Comm& interCommMerged, int intraServerRank) : interComm_(interComm), serverRank_(serverRank), interCommMerged_(interCommMerged), intraServerRank_(intraServerRank) 11 11 { 12 12 … … 261 261 } 262 262 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").resume() ; 263 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, serverRank_, 20, interComm_, &request.mpiRequest ) ;263 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_, &request.mpiRequest ) ; 264 264 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").suspend() ; 265 265 info(logProtocol)<<outStr.str()<<endl ; … … 272 272 request.buffer = new CBufferOut(sizeof(EVENT_BUFFER_RESIZE)+sizeof(timeline)+sizeof(size)) ; 273 273 *(request.buffer)<<EVENT_BUFFER_RESIZE<<timeline<<size ; 274 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, serverRank_, 20, interComm_, &request.mpiRequest ) ;274 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_, &request.mpiRequest ) ; 275 275 requests_.push_back(request) ; 276 276 } … … 280 280 MPI_Aint controlAddr ; 281 281 MPI_Get_address(control_, &controlAddr) ; 282 MPI_Send(&controlAddr, 1, MPI_AINT, serverRank_, 20, interComm_) ;282 MPI_Send(&controlAddr, 1, MPI_AINT, intraServerRank_, 20, interCommMerged_) ; 283 283 } 284 284 -
XIOS3/trunk/src/transport/one_sided_client_buffer.hpp
r2399 r2526 182 182 int serverRank_ ; 183 183 184 MPI_Comm interCommMerged_; 185 int intraServerRank_ ; 186 184 187 std::list<CBuffer*> buffers_ ; 185 188 std::list<SBloc> blocs_ ; -
XIOS3/trunk/src/transport/one_sided_context_server.cpp
r2407 r2526 98 98 { 99 99 traceOff(); 100 MPI_Iprobe(MPI_ANY_SOURCE, 20,interComm , &flag, &status);100 MPI_Iprobe(MPI_ANY_SOURCE, 20,interCommMerged_, &flag, &status); 101 101 traceOn(); 102 102 if (flag==true) 103 103 { 104 requests_.push_back( CRequest(interComm, status)) ;105 if (requests_.back() .test())104 requests_.push_back(new CRequest(interCommMerged_, status)) ; 105 if (requests_.back()->test()) 106 106 { 107 processRequest(requests_.back()) ; 107 processRequest(*(requests_.back())) ; 108 delete requests_.back(); 108 109 requests_.pop_back() ; 109 110 } … … 117 118 while (it != requests_.end()) 118 119 { 119 if (it->test()) 120 { 121 processRequest(*it) ; 120 if ((*it)->test()) 121 { 122 processRequest(*(*it)) ; 123 delete (*it); 122 124 auto it2=it ; 123 125 ++it ; -
XIOS3/trunk/src/transport/one_sided_context_server.hpp
r2343 r2526 106 106 MPI_Request processEventRequest_ ; 107 107 108 std::list<CRequest > requests_ ;108 std::list<CRequest*> requests_ ; 109 109 110 110 std::map<size_t, SPendingEvent> pendingEvents_ ;
Note: See TracChangeset
for help on using the changeset viewer.