Ignore:
Timestamp:
10/11/21 14:41:56 (3 years ago)
Author:
ymipsl
Message:
  • Update of the tranfer protocol using one sided communication
  • Introduce MPI_Improb/MPI_mrecv to listen incomming request
  • Introducing latency when looping over managers

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/manager/servers_ressource.cpp

    r2220 r2246  
    55#include "cxios.hpp" 
    66#include "mpi.hpp" 
     7#include "timer.hpp" 
    78#include <vector> 
    89#include <string> 
     
    115116  bool CServersRessource::eventLoop(bool serviceOnly) 
    116117  { 
    117     checkNotifications() ; 
     118    CTimer::get("CServersRessource::eventLoop").resume(); 
     119    double time=MPI_Wtime() ; 
     120    if (time-lastEventLoop_ > eventLoopLatency_)  
     121    { 
     122      checkNotifications() ; 
     123      lastEventLoop_=time ; 
     124    } 
     125 
    118126    if (poolRessource_!=nullptr)  
    119127    { 
     
    124132      }  
    125133    } 
    126  
     134    CTimer::get("CServersRessource::eventLoop").suspend(); 
    127135    if (poolRessource_==nullptr && finalizeSignal_) return true ; 
    128136    else return false ; 
Note: See TracChangeset for help on using the changeset viewer.