Ignore:
Timestamp:
09/09/22 17:23:16 (22 months ago)
Author:
ymipsl
Message:

-Fix performance issue in one_sided protocol

  • better timer instrumentation of the protocol

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/transport/one_sided_client_buffer.cpp

    r2347 r2399  
    4343    CXios::getMpiGarbageCollector().registerWindow(winControl_) ; 
    4444 
    45      
    46  
    47     CTimer::get("create Windows").suspend() ; 
    48  
    4945    MPI_Barrier(winComm_) ; 
    5046    MPI_Win_attach(winControl_, control_, controlSize_*sizeof(MPI_Aint)) ; 
    5147    MPI_Barrier(winComm_) ; 
     48    CTimer::get("create Windows").suspend() ; 
     49  
    5250 //   MPI_Win_lock(MPI_LOCK_EXCLUSIVE, 0, 0, winControl_) ; 
    5351 //   MPI_Win_unlock(0,winControl_) ; 
     
    217215    { 
    218216      request = requests_.front() ; 
     217      if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Test").resume() ; 
    219218      MPI_Test(&request.mpiRequest, &flag, MPI_STATUS_IGNORE) ; 
     219      if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Test").suspend() ; 
    220220      if (flag==true) 
    221221      { 
     
    260260      } 
    261261    } 
     262    if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").resume() ; 
    262263    MPI_Isend(request.buffer->start(),request.buffer->count(), MPI_CHAR, serverRank_, 20, interComm_, &request.mpiRequest ) ; 
     264    if (info.isActive(logProtocol)) CTimer::get("sendTimelineEvent : MPI_Isend").suspend() ; 
    263265    info(logProtocol)<<outStr.str()<<endl ; 
    264266    requests_.push_back(request) ; 
Note: See TracChangeset for help on using the changeset viewer.