- Timestamp:
- 10/06/17 13:56:33 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/src_ep_dev/ep_allgatherv.cpp
r1289 r1295 73 73 MPI_Gatherv_local(sendbuf, count, datatype, local_recvbuf, local_recvcounts.data(), local_displs.data(), 0, comm); 74 74 75 76 77 75 78 76 if(is_master) … … 87 85 mpi_displs[i] = mpi_displs[i-1] + mpi_recvcounts[i-1]; 88 86 89 // if(ep_rank_loc == 0)90 // {91 // printf("local_recvbuf =\n");92 // for(int i=0; i<num_ep*sendcount; i++) printf("%d\t", static_cast<int*>(local_recvbuf)[i]);93 // printf("\n");94 // }95 96 // printf("mpi_recvcounts = %d %d %d\n", mpi_recvcounts[0], mpi_recvcounts[1], mpi_recvcounts[2]);97 // printf("mpi_displs = %d %d %d\n", mpi_displs[0], mpi_displs[1], mpi_displs[2]);98 99 100 87 101 88 ::MPI_Allgatherv(local_recvbuf, local_sendcount, to_mpi_type(datatype), tmp_recvbuf, mpi_recvcounts.data(), mpi_displs.data(), to_mpi_type(datatype), to_mpi_comm(comm.mpi_comm)); 102 103 // if(ep_rank == 0)104 // {105 // printf("tmp_recvbuf =\n");106 // for(int i=0; i<ep_size*sendcount; i++) printf("%d\t", static_cast<int*>(tmp_recvbuf)[i]);107 // printf("\n");108 // }109 110 89 111 90 // reorder … … 126 105 127 106 } 128 129 // if(ep_rank == 0) 130 // { 131 // printf("recvbuf[%d] =\n", recvbuf_size); 132 // for(int i=0; i<ep_size*sendcount; i++) printf("%d\t", static_cast<int*>(recvbuf)[i]); 133 // printf("\n"); 134 // } 107 135 108 } 136 109
Note: See TracChangeset
for help on using the changeset viewer.