Changeset 1499 for XIOS/dev/branch_openmp/extern/ep_dev/ep_gather.cpp
- Timestamp:
- 05/16/18 15:56:55 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_openmp/extern/ep_dev/ep_gather.cpp
r1381 r1499 35 35 for(int i=0; i<num_ep; i++) 36 36 memcpy(recvbuf + datasize * i * count, comm.my_buffer->void_buffer[i], datasize * count); 37 38 //printf("local_recvbuf = %d %d \n", static_cast<int*>(recvbuf)[0], static_cast<int*>(recvbuf)[1] ); 37 39 } 38 40 … … 101 103 if(is_root) 102 104 { 105 // printf("tmp_recvbuf = %d %d %d %d %d %d %d %d\n", static_cast<int*>(tmp_recvbuf)[0], static_cast<int*>(tmp_recvbuf)[1], 106 // static_cast<int*>(tmp_recvbuf)[2], static_cast<int*>(tmp_recvbuf)[3], 107 // static_cast<int*>(tmp_recvbuf)[4], static_cast<int*>(tmp_recvbuf)[5], 108 // static_cast<int*>(tmp_recvbuf)[6], static_cast<int*>(tmp_recvbuf)[7] ); 109 103 110 int offset; 104 111 for(int i=0; i<ep_size; i++) … … 106 113 offset = displs[comm.rank_map->at(i).second] + comm.rank_map->at(i).first * sendcount; 107 114 memcpy(recvbuf + i*sendcount*datasize, tmp_recvbuf+offset*datasize, sendcount*datasize); 115 116 108 117 } 109 118
Note: See TracChangeset
for help on using the changeset viewer.