Ignore:
Timestamp:
10/04/17 17:02:13 (4 years ago)
Author:
yushan
Message:

EP update part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_split.cpp

    r1287 r1289  
    4545    mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 
    4646 
     47 
     48 
     49 
    4750    int num_color = 0; 
    4851 
     
    5659    vector<int> all_color_loc(num_ep); 
    5760 
    58     MPI_Gather_local(&color, 1, MPI_INT, all_color_loc.data(), 0, comm); 
    59     MPI_Bcast_local(all_color_loc.data(), num_ep, MPI_INT, 0, comm); 
     61    MPI_Gather_local2(&color, 1, MPI_INT, all_color_loc.data(), comm); 
     62    MPI_Bcast_local2(all_color_loc.data(), num_ep, MPI_INT, comm); 
    6063 
    6164 
     
    97100    vector<int> key_loc(num_ep); 
    98101 
    99     MPI_Gather_local(&key, 1, MPI_INT, key_loc.data(), 0, comm); 
    100     MPI_Bcast_local(key_loc.data(), num_ep, MPI_INT, 0, comm); 
     102    MPI_Gather_local2(&key, 1, MPI_INT, key_loc.data(), comm); 
     103    MPI_Bcast_local2(key_loc.data(), num_ep, MPI_INT, comm); 
    101104 
    102105    for(int i=0; i<num_ep; i++) 
     
    164167      { 
    165168        *newcomm = comm.ep_comm_ptr->comm_list->mem_bridge[new_ep_rank_loc]; 
     169 //       newcomm = &(comm.ep_comm_ptr->comm_list->mem_bridge[new_ep_rank_loc]); 
    166170        (*newcomm).ep_comm_ptr->comm_label = color; 
    167171      } 
Note: See TracChangeset for help on using the changeset viewer.