Ignore:
Timestamp:
02/21/17 08:40:09 (7 years ago)
Author:
yushan
Message:

one file mode OK. Tested with test_client

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  
    3232    { 
    3333      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); 
    3535    } 
    3636     
     
    5252      MPI_Comm comm_ptr; 
    5353      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); 
    5555      return  comm_ptr; 
    5656    } 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_gatherv.cpp

    r1053 r1056  
    323323  { 
    324324   
    325      
    326      
    327  
    328325    if(!comm.is_ep && comm.mpi_comm) 
    329326    { 
     
    350347    mpi_size = comm.ep_comm_ptr->size_rank_info[2].second; 
    351348     
     349    if(ep_rank != root) 
     350    { 
     351      recvcounts = new int[ep_size]; 
     352      displs = new int[ep_size]; 
     353    } 
     354     
    352355    MPI_Bcast(const_cast< int* >(recvcounts), ep_size, MPI_INT, root, comm); 
    353356    MPI_Bcast(const_cast< int* >(displs), ep_size, MPI_INT, root, comm); 
     
    441444        delete[] static_cast<char*>(local_gather_recvbuf); 
    442445      } 
     446    } 
     447    else 
     448    { 
     449      delete[] recvcounts; 
     450      delete[] displs; 
    443451    } 
    444452    return 0; 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_scatterv.cpp

    r1053 r1056  
    318318    num_ep = comm.ep_comm_ptr->size_rank_info[1].second; 
    319319    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    } 
    320326     
    321327    MPI_Bcast(const_cast<int*>(sendcounts), ep_size, MPI_INT, root, comm); 
     
    414420      } 
    415421    } 
     422    else 
     423    { 
     424      delete[] sendcounts; 
     425      delete[] displs; 
     426    } 
    416427 
    417428  } 
  • XIOS/dev/branch_yushan/extern/src_ep_dev/ep_split.cpp

    r1053 r1056  
    7474 
    7575 
    76     while(color_list.size()) 
     76    while(!color_list.empty()) 
    7777    { 
    7878      int target_color = color_list.front(); 
     
    124124      if(color == all_color[i]) 
    125125      { 
    126         color_index = i; 
     126        //color_index = i; 
    127127        for(int j=0; j<colored_key_loc[i].size(); j++) 
    128128        { 
Note: See TracChangeset for help on using the changeset viewer.