Ignore:
Timestamp:
05/28/18 09:54:32 (4 years ago)
Author:
yushan
Message:

save dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/ep_dev/ep_fetch.cpp

    r1394 r1500  
    1111        int MPI_Fetch_and_op(const void *origin_addr, void *result_addr, MPI_Datatype datatype, int target_rank, MPI_Aint target_disp, MPI_Op op, MPI_Win win) 
    1212  { 
    13     int target_mpi_rank   = win.comm.rank_map->at(target_rank).second; 
    14     int target_local_rank = win.comm.rank_map->at(target_rank).first; 
    15     int num_ep = win.comm.ep_comm_ptr->size_rank_info[1].second; 
     13    int target_mpi_rank   = win->comm->rank_map->at(target_rank).second; 
     14    int target_local_rank = win->comm->rank_map->at(target_rank).first; 
     15    int num_ep = win->comm->ep_comm_ptr->size_rank_info[1].second; 
    1616    if(num_ep==1) 
    17       return  ::MPI_Fetch_and_op(origin_addr, result_addr, to_mpi_type(datatype), target_mpi_rank, to_mpi_aint(target_disp), to_mpi_op(op), to_mpi_win(win.server_win[target_local_rank])); 
     17      return  ::MPI_Fetch_and_op(origin_addr, result_addr, to_mpi_type(datatype), target_mpi_rank, to_mpi_aint(target_disp), to_mpi_op(op), to_mpi_win(win->server_win[target_local_rank])); 
    1818 
    1919    else 
    20         return  ::MPI_Fetch_and_op(origin_addr, result_addr, to_mpi_type(datatype), target_mpi_rank, to_mpi_aint(target_disp), to_mpi_op(op), to_mpi_win(win.client_win)); 
     20        return  ::MPI_Fetch_and_op(origin_addr, result_addr, to_mpi_type(datatype), target_mpi_rank, to_mpi_aint(target_disp), to_mpi_op(op), to_mpi_win(win->client_win)); 
    2121  } 
    2222 
Note: See TracChangeset for help on using the changeset viewer.