Ignore:
Timestamp:
10/04/17 11:45:14 (4 years ago)
Author:
yushan
Message:

EP updated

File:
1 edited

Legend:

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

    r1134 r1287  
    4545    mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 
    4646 
    47  
    48  
    49  
    5047    int num_color = 0; 
    5148 
     
    5956    vector<int> all_color_loc(num_ep); 
    6057 
    61     MPI_Gather_local(&color, 1, MPI_INT, all_color_loc.data(), comm); 
    62     MPI_Bcast_local(all_color_loc.data(), num_ep, MPI_INT, comm); 
     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); 
    6360 
    6461 
     
    10097    vector<int> key_loc(num_ep); 
    10198 
    102     MPI_Gather_local(&key, 1, MPI_INT, key_loc.data(), comm); 
    103     MPI_Bcast_local(key_loc.data(), num_ep, MPI_INT, comm); 
     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); 
    104101 
    105102    for(int i=0; i<num_ep; i++) 
     
    167164      { 
    168165        *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]); 
    170166        (*newcomm).ep_comm_ptr->comm_label = color; 
    171167      } 
Note: See TracChangeset for help on using the changeset viewer.