Ignore:
Timestamp:
11/19/21 15:41:40 (3 years ago)
Author:
ymipsl
Message:

Improvment of one sided protocol

  • removed latency
  • solve dead-lock

YM

File:
1 edited

Legend:

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

    r2259 r2260  
    248248    MPI_Status status; 
    249249    int flag; 
    250      
    251     if (hasWindows) 
    252     {  
    253       MPI_Win_lock(MPI_LOCK_EXCLUSIVE, clientRank_, 0, windows_[0]) ; 
    254       MPI_Win_unlock(clientRank_, windows_[0]) ; 
    255  
    256       MPI_Win_lock(MPI_LOCK_EXCLUSIVE, clientRank_, 0, windows_[1]) ; 
    257       MPI_Win_unlock(clientRank_, windows_[1]) ; 
    258     } 
    259      
     250    MPI_Iprobe(MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &flag, MPI_STATUS_IGNORE); 
     251  
    260252    if (pending) 
    261253    { 
Note: See TracChangeset for help on using the changeset viewer.