Commit 3c39fc84 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

remove comments

parent 843e6be0
...@@ -777,11 +777,6 @@ protected: ...@@ -777,11 +777,6 @@ protected:
FAssertLF(sendBuffer[idxLevel * nbProcess + idxProc]->getSize() == toSendAtProcAtLevel); FAssertLF(sendBuffer[idxLevel * nbProcess + idxProc]->getSize() == toSendAtProcAtLevel);
// FAssertLF(sendBuffer[idxLevel * nbProcess + idxProc]->getSize() < std::numeric_limits<int>::max());
// requests.emplace_back();
// FMpi::MpiAssert( MPI_Isend( sendBuffer[idxLevel * nbProcess + idxProc]->data(),
// int(sendBuffer[idxLevel * nbProcess + idxProc]->getSize()),MPI_PACKED, idxProc,
// FMpi::TagLast + idxLevel*100, comm.getComm(), &requests.back()) , __LINE__ );
FMpi::ISendSplit(sendBuffer[idxLevel * nbProcess + idxProc]->data(), FMpi::ISendSplit(sendBuffer[idxLevel * nbProcess + idxProc]->data(),
sendBuffer[idxLevel * nbProcess + idxProc]->getSize(), idxProc, sendBuffer[idxLevel * nbProcess + idxProc]->getSize(), idxProc,
FMpi::TagLast + idxLevel*100, comm, &requests); FMpi::TagLast + idxLevel*100, comm, &requests);
...@@ -791,11 +786,6 @@ protected: ...@@ -791,11 +786,6 @@ protected:
if(toReceiveFromProcAtLevel){ if(toReceiveFromProcAtLevel){
recvBuffer[idxLevel * nbProcess + idxProc] = new FMpiBufferReader(comm.getComm(),int(toReceiveFromProcAtLevel)); recvBuffer[idxLevel * nbProcess + idxProc] = new FMpiBufferReader(comm.getComm(),int(toReceiveFromProcAtLevel));
// FAssertLF(recvBuffer[idxLevel * nbProcess + idxProc]->getCapacity() < std::numeric_limits<int>::max());
// requests.emplace_back();
// FMpi::MpiAssert( MPI_Irecv(recvBuffer[idxLevel * nbProcess + idxProc]->data(),
// int(recvBuffer[idxLevel * nbProcess + idxProc]->getCapacity()), MPI_PACKED,idxProc,
// FMpi::TagLast + idxLevel*100, comm.getComm(), &requests.back()) , __LINE__ );
FMpi::IRecvSplit(recvBuffer[idxLevel * nbProcess + idxProc]->data(), FMpi::IRecvSplit(recvBuffer[idxLevel * nbProcess + idxProc]->data(),
recvBuffer[idxLevel * nbProcess + idxProc]->getCapacity(), idxProc, recvBuffer[idxLevel * nbProcess + idxProc]->getCapacity(), idxProc,
FMpi::TagLast + idxLevel*100, comm, &requests); FMpi::TagLast + idxLevel*100, comm, &requests);
...@@ -1337,10 +1327,7 @@ protected: ...@@ -1337,10 +1327,7 @@ protected:
if(globalReceiveMap[idxProc * nbProcess + idProcess]){ //if idxProc has sth for me. if(globalReceiveMap[idxProc * nbProcess + idProcess]){ //if idxProc has sth for me.
//allocate buffer of right size //allocate buffer of right size
recvBuffer[idxProc] = new FMpiBufferReader(comm.getComm(),globalReceiveMap[idxProc * nbProcess + idProcess]); recvBuffer[idxProc] = new FMpiBufferReader(comm.getComm(),globalReceiveMap[idxProc * nbProcess + idProcess]);
// FAssertLF(recvBuffer[idxProc]->getCapacity() < std::numeric_limits<int>::max());
// requests.emplace_back();
// FMpi::MpiAssert( MPI_Irecv(recvBuffer[idxProc]->data(), int(recvBuffer[idxProc]->getCapacity()), MPI_PACKED,
// idxProc, FMpi::TagFmmP2P, comm.getComm(), &requests.back()) , __LINE__ );
FMpi::IRecvSplit(recvBuffer[idxProc]->data(), recvBuffer[idxProc]->getCapacity(), FMpi::IRecvSplit(recvBuffer[idxProc]->data(), recvBuffer[idxProc]->getCapacity(),
idxProc, FMpi::TagFmmP2P, comm, &requests); idxProc, FMpi::TagFmmP2P, comm, &requests);
} }
...@@ -1359,10 +1346,7 @@ protected: ...@@ -1359,10 +1346,7 @@ protected:
} }
FAssertLF(sendBuffer[idxProc]->getSize() == globalReceiveMap[idProcess*nbProcess+idxProc]); FAssertLF(sendBuffer[idxProc]->getSize() == globalReceiveMap[idProcess*nbProcess+idxProc]);
// FAssertLF(sendBuffer[idxProc]->getSize() < std::numeric_limits<int>::max());
// requests.emplace_back();
// FMpi::MpiAssert( MPI_Isend( sendBuffer[idxProc]->data(), int(sendBuffer[idxProc]->getSize()) , MPI_PACKED ,
// idxProc, FMpi::TagFmmP2P, comm.getComm(), &requests.back()) , __LINE__ );
FMpi::ISendSplit(sendBuffer[idxProc]->data(), sendBuffer[idxProc]->getSize(), FMpi::ISendSplit(sendBuffer[idxProc]->data(), sendBuffer[idxProc]->getSize(),
idxProc, FMpi::TagFmmP2P, comm, &requests); idxProc, FMpi::TagFmmP2P, comm, &requests);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment