Ignore:
Timestamp:
10/06/17 13:56:33 (7 years ago)
Author:
yushan
Message:

EP update all

File:
1 edited

Legend:

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

    r1289 r1295  
    7373    MPI_Gatherv_local(sendbuf, count, datatype, local_recvbuf, local_recvcounts.data(), local_displs.data(), 0, comm); 
    7474 
    75      
    76  
    7775 
    7876    if(is_master) 
     
    8785        mpi_displs[i] = mpi_displs[i-1] + mpi_recvcounts[i-1]; 
    8886 
    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  
    10087 
    10188      ::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  
    11089 
    11190      // reorder  
     
    126105         
    127106      } 
    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 
    135108    } 
    136109 
Note: See TracChangeset for help on using the changeset viewer.