Changeset 2562
- Timestamp:
- 09/12/23 08:52:28 (16 months ago)
- Location:
- XIOS3/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/manager/ressources_manager.cpp
r2517 r2562 43 43 delete winNotify_ ; 44 44 delete winRessources_ ; 45 delete tokenManager_ ; 45 46 } 46 47 -
XIOS3/trunk/src/transport/p2p_client_buffer.cpp
r2558 r2562 229 229 if (flag==true) 230 230 { 231 info(logProtocol) << "DBG : Send req deleted to " << intraServerRank_ << ", of size " << request.buffer->count() << endl; 231 232 delete request.buffer ; 232 233 requests_.pop_front() ; … … 300 301 } 301 302 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").resume() ; 303 info(logProtocol) << "DBG : Send Hdr to " << intraServerRank_ << ", of size " << request.buffer->count() << endl; 302 304 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_, &request.mpiRequest ) ; 305 //MPI_Send(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_ ) ; 306 //delete request.buffer ; 303 307 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").suspend() ; 304 308 info(logProtocol)<<outStr.str()<<endl ; … … 311 315 request.buffer = new CBufferOut(sizeof(EVENT_BUFFER_RESIZE)+sizeof(timeline)+sizeof(size)) ; 312 316 *(request.buffer)<<EVENT_BUFFER_RESIZE<<timeline<<size ; 317 info(logProtocol) << "DBG : Send Hdr RESIZE to " << intraServerRank_ << ", of size " << request.buffer->count() << endl; 313 318 MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_, &request.mpiRequest ) ; 319 //MPI_Send(request.buffer->start(),request.buffer->count(), MPI_CHAR, intraServerRank_, 20, interCommMerged_ ) ; 320 //delete request.buffer ; 314 321 requests_.push_back(request) ; 315 322 } -
XIOS3/trunk/src/transport/p2p_context_server.cpp
r2560 r2562 104 104 requests_[rank].push_back(new CRequest(interCommMerged_, status)) ; 105 105 // Test 1st request of the list, request treatment must be ordered 106 //while (!requests_[rank].back()->test()) 107 //{ 108 //} 106 109 if (requests_[rank].front()->test()) 107 110 { … … 110 113 requests_[rank].pop_front() ; 111 114 } 115 //CRequest* request = new CRequest(interCommMerged_, status); 116 //processRequest(*request) ; 117 //delete request; 112 118 } 113 119 } … … 134 140 if (it==buffers_.end()) 135 141 { 142 info(logProtocol) << "DBG : Buffer(Hdr) created " << rank << ", of size " << request.getCount() << endl; 136 143 buffers_[rank] = new CP2pServerBuffer(rank, commSelf_, interCommMerged_, pendingEvents_, completedEvents_, request.getBuffer()) ; 137 144 } 138 else 139 {145 else { 146 info(logProtocol) << "DBG : Buffer(Hdr) received " << rank << ", of size " << request.getCount() << endl; 140 147 it->second->receivedRequest(request.getBuffer()) ; 141 148 } -
XIOS3/trunk/src/transport/p2p_context_server.hpp
r2560 r2562 36 36 MPI_Get_count(&status,MPI_CHAR,&count_); 37 37 buffer_.resize(count_) ; 38 info(logProtocol) << "DBG : Request created from " << rank_ << ", of size " << count_ << endl; 38 39 MPI_Irecv(buffer_.data(), count_, MPI_CHAR, rank_, 20, interComm, &request_) ; 40 //MPI_Status mpistatus; 41 //MPI_Recv(buffer_.data(), count_, MPI_CHAR, rank_, 20, interComm, &mpistatus) ; 39 42 } 40 43 41 ~CRequest() { }44 ~CRequest() { info(logProtocol) << "DBG : Request deleted " << rank_ << ", of size " << count_ << endl; } 42 45 43 46 bool test(void) … … 46 49 MPI_Status status ; 47 50 MPI_Test(&request_, &flag, &status) ; 48 if (flag==true) return true ; 51 if (flag==true) { 52 info(logProtocol) << "DBG : Request completed " << rank_ << ", of size " << count_ << endl; 53 return true ; 54 } 49 55 else return false ; 50 56 }
Note: See TracChangeset
for help on using the changeset viewer.