Changeset 1060 for XIOS/dev/branch_yushan/extern
- Timestamp:
- 02/23/17 15:51:56 (7 years ago)
- Location:
- XIOS/dev/branch_yushan/extern/src_ep_dev
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_create.cpp
r1037 r1060 185 185 } 186 186 187 printf("ep_lib::MPI_Comm_create_endpoints() OK from void*\n");187 //printf("ep_lib::MPI_Comm_create_endpoints() OK from void*\n"); 188 188 189 189 return 0; -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_fortran.cpp
r1056 r1060 32 32 { 33 33 fc_comm_map.insert(std::make_pair( std::make_pair( fint, omp_get_thread_num()) , comm)); 34 printf("EP_Comm_c2f : MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm);34 //printf("EP_Comm_c2f : MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm); 35 35 } 36 36 … … 52 52 MPI_Comm comm_ptr; 53 53 comm_ptr = it->second; 54 printf("EP_Comm_f2c : MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr);54 //printf("EP_Comm_f2c : MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr); 55 55 return comm_ptr; 56 56 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_intercomm.cpp
r1053 r1060 56 56 if( leader_ranks[1] * leader_ranks[4] == 1) 57 57 { 58 if(ep_rank == local_leader) printf("calling MPI_Intercomm_create_unique_leader\n");58 if(ep_rank == local_leader) Debug("calling MPI_Intercomm_create_unique_leader\n"); 59 59 local_comm.ep_comm_ptr->comm_label = -99; 60 60 … … 64 64 { 65 65 // change leader 66 if(ep_rank == local_leader) printf("calling MPI_Intercomm_create_from_world\n");66 if(ep_rank == local_leader) Debug("calling MPI_Intercomm_create_from_world\n"); 67 67 68 68 int new_local_leader; … … 179 179 } 180 180 181 if(ep_rank == local_leader) printf("calling MPI_Intercomm_create_kernel\n");181 if(ep_rank == local_leader) Debug("calling MPI_Intercomm_create_kernel\n"); 182 182 183 183 return MPI_Intercomm_create_kernel(local_comm, local_leader, peer_comm, remote_leader, tag, newintercomm); -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_lib.cpp
r1037 r1060 52 52 if( comm.ep_comm_ptr->intercomm->remote_rank_map->at(i).first == inter_rank ) 53 53 { 54 printf("get_ep_rank for intercomm, ep_rank_loc = %d, mpi_rank = %d => ep_src = %d\n", ep_rank_loc, mpi_rank, i);54 //printf("get_ep_rank for intercomm, ep_rank_loc = %d, mpi_rank = %d => ep_src = %d\n", ep_rank_loc, mpi_rank, i); 55 55 return i; 56 56 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_probe.cpp
r1053 r1060 36 36 37 37 #pragma omp critical (_query) 38 if( comm.ep_comm_ptr->message_queue->size() > 0)38 if(!comm.ep_comm_ptr->message_queue->empty()) 39 39 { 40 for(Message_list::iterator it = comm.ep_comm_ptr->message_queue->begin(); it!= comm.ep_comm_ptr->message_queue->end(); it++)40 for(Message_list::iterator it = comm.ep_comm_ptr->message_queue->begin(); it!= comm.ep_comm_ptr->message_queue->end(); ++it) 41 41 { 42 42 bool src_matched = src<0? true: it->ep_src == src; … … 107 107 108 108 #pragma omp critical (_query) 109 if( comm.ep_comm_ptr->message_queue->size() > 0)109 if(! comm.ep_comm_ptr->message_queue->empty()) 110 110 { 111 for(Message_list::iterator it = comm.ep_comm_ptr->message_queue->begin(); it!= comm.ep_comm_ptr->message_queue->end(); it++)111 for(Message_list::iterator it = comm.ep_comm_ptr->message_queue->begin(); it!= comm.ep_comm_ptr->message_queue->end(); ++it) 112 112 { 113 113 bool src_matched = src<0? true: it->ep_src == src;
Note: See TracChangeset
for help on using the changeset viewer.