Changeset 1056 for XIOS/dev/branch_yushan/extern
- Timestamp:
- 02/21/17 08:40:09 (7 years ago)
- Location:
- XIOS/dev/branch_yushan/extern/src_ep_dev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_fortran.cpp
r1053 r1056 32 32 { 33 33 fc_comm_map.insert(std::make_pair( std::make_pair( fint, omp_get_thread_num()) , comm)); 34 printf(" MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm);34 printf("EP_Comm_c2f : MAP insert: %d, %d, %p\n", fint, omp_get_thread_num(), &comm); 35 35 } 36 36 … … 52 52 MPI_Comm comm_ptr; 53 53 comm_ptr = it->second; 54 printf(" MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr);54 printf("EP_Comm_f2c : MAP find: %d, %d, %p\n", it->first.first, it->first.second, &comm_ptr); 55 55 return comm_ptr; 56 56 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_gatherv.cpp
r1053 r1056 323 323 { 324 324 325 326 327 328 325 if(!comm.is_ep && comm.mpi_comm) 329 326 { … … 350 347 mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 351 348 349 if(ep_rank != root) 350 { 351 recvcounts = new int[ep_size]; 352 displs = new int[ep_size]; 353 } 354 352 355 MPI_Bcast(const_cast< int* >(recvcounts), ep_size, MPI_INT, root, comm); 353 356 MPI_Bcast(const_cast< int* >(displs), ep_size, MPI_INT, root, comm); … … 441 444 delete[] static_cast<char*>(local_gather_recvbuf); 442 445 } 446 } 447 else 448 { 449 delete[] recvcounts; 450 delete[] displs; 443 451 } 444 452 return 0; -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_scatterv.cpp
r1053 r1056 318 318 num_ep = comm.ep_comm_ptr->size_rank_info[1].second; 319 319 mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 320 321 if(ep_rank != root) 322 { 323 sendcounts = new int[ep_size]; 324 displs = new int[ep_size]; 325 } 320 326 321 327 MPI_Bcast(const_cast<int*>(sendcounts), ep_size, MPI_INT, root, comm); … … 414 420 } 415 421 } 422 else 423 { 424 delete[] sendcounts; 425 delete[] displs; 426 } 416 427 417 428 } -
XIOS/dev/branch_yushan/extern/src_ep_dev/ep_split.cpp
r1053 r1056 74 74 75 75 76 while( color_list.size())76 while(!color_list.empty()) 77 77 { 78 78 int target_color = color_list.front(); … … 124 124 if(color == all_color[i]) 125 125 { 126 color_index = i;126 //color_index = i; 127 127 for(int j=0; j<colored_key_loc[i].size(); j++) 128 128 {
Note: See TracChangeset
for help on using the changeset viewer.