- Timestamp:
- 06/08/17 17:31:50 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/extern/src_ep_dev/ep_gather.cpp
r1151 r1164 355 355 void *local_gather_recvbuf; 356 356 void *master_recvbuf; 357 if(ep_rank_loc == 0 && mpi_rank == root_mpi_rank && root_ep_loc != 0) master_recvbuf = new void*[sizeof(recvbuf)]; 357 if(ep_rank_loc == 0 && mpi_rank == root_mpi_rank && root_ep_loc != 0) 358 { 359 master_recvbuf = new void*[datasize*ep_size*count]; 360 } 358 361 359 362 if(ep_rank_loc==0) … … 404 407 { 405 408 innode_memcpy(0, master_recvbuf, root_ep_loc, recvbuf, count*ep_size, datatype, comm); 406 if(ep_rank_loc == 0 ) delete[] master_recvbuf;407 409 } 408 410 … … 411 413 if(ep_rank_loc==0) 412 414 { 413 414 415 if(datatype == MPI_INT) 415 416 { … … 436 437 delete[] static_cast<unsigned long*>(local_gather_recvbuf); 437 438 } 438 }439 440 439 440 if(root_ep_loc != 0 && mpi_rank == root_mpi_rank) delete[] master_recvbuf; 441 } 441 442 } 442 443
Note: See TracChangeset
for help on using the changeset viewer.