Ignore:
Timestamp:
02/23/17 15:51:56 (7 years ago)
Author:
yushan
Message:

minor corrections + clean up

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  
    185185    } 
    186186 
    187     printf("ep_lib::MPI_Comm_create_endpoints()       OK from void*\n"); 
     187    //printf("ep_lib::MPI_Comm_create_endpoints()       OK from void*\n"); 
    188188 
    189189    return 0; 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_fortran.cpp

    r1056 r1060  
    3232    { 
    3333      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); 
    3535    } 
    3636     
     
    5252      MPI_Comm comm_ptr; 
    5353      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); 
    5555      return  comm_ptr; 
    5656    } 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_intercomm.cpp

    r1053 r1060  
    5656      if( leader_ranks[1] * leader_ranks[4] == 1) 
    5757      { 
    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"); 
    5959        local_comm.ep_comm_ptr->comm_label = -99; 
    6060 
     
    6464      { 
    6565        // 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"); 
    6767 
    6868        int new_local_leader; 
     
    179179    } 
    180180 
    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"); 
    182182 
    183183    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  
    5252      if(  comm.ep_comm_ptr->intercomm->remote_rank_map->at(i).first  == inter_rank  ) 
    5353      { 
    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); 
    5555        return i; 
    5656      } 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_probe.cpp

    r1053 r1060  
    3636 
    3737    #pragma omp critical (_query) 
    38     if(comm.ep_comm_ptr->message_queue->size() > 0) 
     38    if(!comm.ep_comm_ptr->message_queue->empty()) 
    3939    { 
    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) 
    4141      { 
    4242        bool src_matched = src<0? true: it->ep_src == src; 
     
    107107 
    108108    #pragma omp critical (_query) 
    109     if(comm.ep_comm_ptr->message_queue->size() > 0) 
     109    if(! comm.ep_comm_ptr->message_queue->empty()) 
    110110    { 
    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) 
    112112      { 
    113113        bool src_matched = src<0? true: it->ep_src == src; 
Note: See TracChangeset for help on using the changeset viewer.