Changeset 1347 for XIOS/dev/branch_openmp/src
- Timestamp:
- 11/27/17 13:46:40 (7 years ago)
- Location:
- XIOS/dev/branch_openmp/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/src/client.cpp
r1342 r1347 100 100 MPI_Comm_size(intraComm,&intraCommSize) ; 101 101 MPI_Comm_rank(intraComm,&intraCommRank) ; 102 info(50)<<"intercommCreate::client "<<rank<<" intraCommSize : "<<intraCommSize 103 <<" intraCommRank :"<<intraCommRank<<" clientLeader "<< serverLeader<<endl ; 102 #pragma omp critical (_output) 103 { 104 info(50)<<"intercommCreate::client "<<rank<<" intraCommSize : "<<intraCommSize 105 <<" intraCommRank :"<<intraCommRank<<" serverLeader "<< serverLeader<<endl ; 106 } 104 107 MPI_Intercomm_create(intraComm,0,CXios::globalComm,serverLeader,0,&interComm) ; 105 108 } … … 185 188 186 189 MPI_Send((void*)buff,buffer.count(),MPI_CHAR,serverLeader,1,CXios::globalComm) ; 190 #pragma omp critical (_output) 191 std::cout<<"client "<<rank<<" send to server "<<serverLeader << buffer.count() <<"message with tag 1" << std::endl; 187 192 delete [] buff ; 193 194 //MPI_Barrier(CXios::globalComm); 188 195 189 196 MPI_Intercomm_create(contextComm,0,CXios::globalComm,serverLeader,10+globalRank,&contextInterComm) ; -
XIOS/dev/branch_openmp/src/server.cpp
r1328 r1347 92 92 MPI_Comm_size(intraComm,&intraCommSize) ; 93 93 MPI_Comm_rank(intraComm,&intraCommRank) ; 94 info(50)<<"intercommCreate::server "<<rank<<" intraCommSize : "<<intraCommSize 95 <<" intraCommRank :"<<intraCommRank<<" clientLeader "<< clientLeader<<endl ; 96 94 #pragma omp critical (_output) 95 { 96 info(50)<<"intercommCreate::server "<<rank<<" intraCommSize : "<<intraCommSize 97 <<" intraCommRank :"<<intraCommRank<<" clientLeader "<< clientLeader<<endl ; 98 } 97 99 MPI_Intercomm_create(intraComm,0,CXios::globalComm,clientLeader,0,&newComm) ; 98 100 interComm.push_back(newComm) ; … … 391 393 392 394 MPI_Comm contextIntercomm; 395 //MPI_Barrier(CXios::globalComm); 396 393 397 MPI_Intercomm_create(intraComm,0,CXios::globalComm,leaderRank,10+leaderRank,&contextIntercomm); 394 398
Note: See TracChangeset
for help on using the changeset viewer.