Changeset 2563
- Timestamp:
- 09/12/23 08:58:14 (16 months ago)
- Location:
- XIOS3/trunk/src/transport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS3/trunk/src/transport/p2p_client_buffer.cpp
r2562 r2563 229 229 if (flag==true) 230 230 { 231 info(logProtocol) << "DBG : Send req deleted to " << intraServerRank_ << ", of size " << request.buffer->count() << endl;232 231 delete request.buffer ; 233 232 requests_.pop_front() ; … … 301 300 } 302 301 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").resume() ; 303 info(logProtocol) << "DBG : Send Hdr to " << intraServerRank_ << ", of size " << request.buffer->count() << endl;304 302 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 ;307 303 if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").suspend() ; 308 304 info(logProtocol)<<outStr.str()<<endl ; … … 315 311 request.buffer = new CBufferOut(sizeof(EVENT_BUFFER_RESIZE)+sizeof(timeline)+sizeof(size)) ; 316 312 *(request.buffer)<<EVENT_BUFFER_RESIZE<<timeline<<size ; 317 info(logProtocol) << "DBG : Send Hdr RESIZE to " << intraServerRank_ << ", of size " << request.buffer->count() << endl;318 313 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 ;321 314 requests_.push_back(request) ; 322 315 } -
XIOS3/trunk/src/transport/p2p_context_server.cpp
r2562 r2563 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 //}109 106 if (requests_[rank].front()->test()) 110 107 { … … 113 110 requests_[rank].pop_front() ; 114 111 } 115 //CRequest* request = new CRequest(interCommMerged_, status);116 //processRequest(*request) ;117 //delete request;118 112 } 119 113 } … … 140 134 if (it==buffers_.end()) 141 135 { 142 info(logProtocol) << "DBG : Buffer(Hdr) created " << rank << ", of size " << request.getCount() << endl;143 136 buffers_[rank] = new CP2pServerBuffer(rank, commSelf_, interCommMerged_, pendingEvents_, completedEvents_, request.getBuffer()) ; 144 137 } 145 else {146 info(logProtocol) << "DBG : Buffer(Hdr) received " << rank << ", of size " << request.getCount() << endl;138 else 139 { 147 140 it->second->receivedRequest(request.getBuffer()) ; 148 141 } -
XIOS3/trunk/src/transport/p2p_context_server.hpp
r2562 r2563 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;39 38 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) ;42 39 } 43 40 44 ~CRequest() { info(logProtocol) << "DBG : Request deleted " << rank_ << ", of size " << count_ << endl;}41 ~CRequest() { } 45 42 46 43 bool test(void) … … 49 46 MPI_Status status ; 50 47 MPI_Test(&request_, &flag, &status) ; 51 if (flag==true) { 52 info(logProtocol) << "DBG : Request completed " << rank_ << ", of size " << count_ << endl; 53 return true ; 54 } 48 if (flag==true) return true ; 55 49 else return false ; 56 50 }
Note: See TracChangeset
for help on using the changeset viewer.