Ignore:
Timestamp:
06/08/17 17:31:50 (7 years ago)
Author:
yushan
Message:

Bug fixed in MPI_(All)Gatherv with displs

Location:
XIOS/dev/branch_yushan_merged/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/src/client.cpp

    r1160 r1164  
    2828    StdOFStream CClient::m_errorStream; 
    2929 
    30     StdOFStream CClient::array_infoStream[10]; 
     30    StdOFStream CClient::array_infoStream[16]; 
    3131 
    3232    void CClient::initialize(const string& codeId, MPI_Comm& localComm, MPI_Comm& returnComm) 
  • XIOS/dev/branch_yushan_merged/src/client.hpp

    r1160 r1164  
    5858        #pragma omp threadprivate(m_errorStream) 
    5959 
    60         static StdOFStream array_infoStream[10]; 
     60        static StdOFStream array_infoStream[16]; 
    6161 
    6262        static void openStream(const StdString& fileName, const StdString& ext, std::filebuf* fb); 
  • XIOS/dev/branch_yushan_merged/src/client_client_dht_template_impl.hpp

    r1134 r1164  
    710710  std::vector<ep_lib::MPI_Status> requestStatus(sendBuffSize+recvBuffSize); 
    711711 
     712  int my_rank; 
     713  MPI_Comm_rank(this->internalComm_, &my_rank); 
     714   
    712715  int nRequest = 0; 
    713716  for (int idx = 0; idx < recvBuffSize; ++idx) 
     
    715718    MPI_Irecv(&recvBuff[0]+2*idx, 2, MPI_INT, 
    716719              recvRank[idx], MPI_DHT_INDEX_0, this->internalComm_, &request[nRequest]); 
     720    printf("proc %d recv from proc %d with tag %d\n", my_rank, recvRank[idx], MPI_DHT_INDEX_0);           
    717721    ++nRequest; 
    718722  } 
     
    724728    sendBuff[idx*2+1] = sendNbElements[offSet]; 
    725729  } 
     730   
     731   
    726732 
    727733  for (int idx = 0; idx < sendBuffSize; ++idx) 
     
    729735    MPI_Isend(&sendBuff[idx*2], 2, MPI_INT, 
    730736              sendRank[idx], MPI_DHT_INDEX_0, this->internalComm_, &request[nRequest]); 
     737    printf("proc %d send to proc %d with tag %d\n", my_rank, sendRank[idx], MPI_DHT_INDEX_0); 
    731738    ++nRequest; 
    732739  } 
  • XIOS/dev/branch_yushan_merged/src/log.cpp

    r1160 r1164  
    77{ 
    88 
    9   std::filebuf* info_FB[10]; 
     9  std::filebuf* info_FB[16]; 
    1010 
    1111 
  • XIOS/dev/branch_yushan_merged/src/log.hpp

    r1160 r1164  
    1919    { 
    2020      omp_init_lock( &mutex ); 
    21       for(int i=0; i<10; i++) 
     21      for(int i=0; i<16; i++) 
    2222        strBuf_array[i] = sBuff; 
    2323    } 
     
    6161    string name ; 
    6262    std::streambuf* strBuf_; 
    63     std::streambuf* strBuf_array[10]; 
     63    std::streambuf* strBuf_array[16]; 
    6464    omp_lock_t mutex; 
    6565  }; 
     
    7070 
    7171 
    72   extern std::filebuf* info_FB[10]; 
     72  extern std::filebuf* info_FB[16]; 
    7373 
    7474 
  • XIOS/dev/branch_yushan_merged/src/node/field.cpp

    r1160 r1164  
    715715     if (context->hasClient) 
    716716     { 
    717        //MPI_Barrier(context->client->intraComm); 
    718        //printf("Proc %d enters function\n", myRank); 
    719717       solveTransformedGrid(); 
    720        //MPI_Barrier(context->client->intraComm); 
    721        //printf("Proc %d exits function\n", myRank); 
    722718     } 
    723719 
Note: See TracChangeset for help on using the changeset viewer.