Ignore:
Timestamp:
11/21/17 16:03:00 (6 years ago)
Author:
yushan
Message:

log files

File:
1 edited

Legend:

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

    r1338 r1342  
    2626    StdOFStream CClient::m_errorStream; 
    2727 
     28    StdOFStream CClient::array_infoStream[16]; 
     29 
    2830    void CClient::initialize(const string& codeId,MPI_Comm& localComm,MPI_Comm& returnComm) 
    2931    { 
     
    186188 
    187189        MPI_Intercomm_create(contextComm,0,CXios::globalComm,serverLeader,10+globalRank,&contextInterComm) ; 
    188         #pragma omp critical (std_output) 
    189         { 
    190           //info(10)<<"Register new Context : "<<id<<endl ; 
     190        #pragma omp critical (_output) 
     191        { 
     192          info(10)<<"Register new Context : "<<id<<endl ; 
    191193        } 
    192194 
     
    254256        MPI_Finalize() ; 
    255257      } 
     258      #pragma omp critical (_output) 
     259      info(20) << "Client side context is finalized"<<endl ; 
    256260       
    257       //info(20) << "Client side context is finalized"<<endl ; 
    258       //report(0) <<" Performance report : Whole time from XIOS init and finalize: "<< CTimer::get("XIOS init/finalize").getCumulatedTime()<<" s"<<endl ; 
    259       //report(0) <<" Performance report : total time spent for XIOS : "<< CTimer::get("XIOS").getCumulatedTime()<<" s"<<endl ; 
    260       //report(0)<< " Performance report : time spent for waiting free buffer : "<< CTimer::get("Blocking time").getCumulatedTime()<<" s"<<endl ; 
    261       //report(0)<< " Performance report : Ratio : "<< CTimer::get("Blocking time").getCumulatedTime()/CTimer::get("XIOS init/finalize").getCumulatedTime()*100.<<" %"<<endl ; 
    262       //report(0)<< " Performance report : This ratio must be close to zero. Otherwise it may be usefull to increase buffer size or numbers of server"<<endl ; 
    263 //      report(0)<< " Memory report : Current buffer_size : "<<CXios::bufferSize<<endl ; 
    264       //report(0)<< " Memory report : Minimum buffer size required : " << CClientBuffer::maxRequestSize << " bytes" << endl ; 
    265       //report(0)<< " Memory report : increasing it by a factor will increase performance, depending of the volume of data wrote in file at each time step of the file"<<endl ; 
    266       //report(100)<<CTimer::getAllCumulatedTime()<<endl ; 
     261 
     262      /*#pragma omp critical (_output) 
     263      { 
     264        report(0) <<" Performance report : Whole time from XIOS init and finalize: "<< CTimer::get("XIOS init/finalize").getCumulatedTime()<<" s"<<endl ; 
     265        report(0) <<" Performance report : total time spent for XIOS : "<< CTimer::get("XIOS").getCumulatedTime()<<" s"<<endl ; 
     266        report(0)<< " Performance report : time spent for waiting free buffer : "<< CTimer::get("Blocking time").getCumulatedTime()<<" s"<<endl ; 
     267        report(0)<< " Performance report : Ratio : "<< CTimer::get("Blocking time").getCumulatedTime()/CTimer::get("XIOS init/finalize").getCumulatedTime()*100.<<" %"<<endl ; 
     268        report(0)<< " Performance report : This ratio must be close to zero. Otherwise it may be usefull to increase buffer size or numbers of server"<<endl ; 
     269        report(0)<< " Memory report : Minimum buffer size required : " << CClientBuffer::maxRequestSize << " bytes" << endl ; 
     270        report(0)<< " Memory report : increasing it by a factor will increase performance, depending of the volume of data wrote in file at each time step of the file"<<endl ; 
     271        report(100)<<CTimer::getAllCumulatedTime()<<endl ; 
     272      }*/ 
    267273   } 
    268274 
     
    307313    void CClient::openInfoStream(const StdString& fileName) 
    308314    { 
    309       std::filebuf* fb = m_infoStream.rdbuf(); 
    310       openStream(fileName, ".out", fb); 
    311  
    312       info.write2File(fb); 
    313       report.write2File(fb); 
     315      info_FB[omp_get_thread_num()] = array_infoStream[omp_get_thread_num()].rdbuf(); 
     316           
     317      openStream(fileName, ".out", info_FB[omp_get_thread_num()]); 
     318 
     319      info.write2File(info_FB[omp_get_thread_num()]); 
     320      report.write2File(info_FB[omp_get_thread_num()]); 
    314321    } 
    315322 
Note: See TracChangeset for help on using the changeset viewer.