Changeset 2240


Ignore:
Timestamp:
09/30/21 14:22:35 (3 years ago)
Author:
jderouillat
Message:

Operate MPI windows free. Otherwise MPI will try to free it itself without respecting an adapted order, which will lead to a deadlock

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src
Files:
3 edited

Legend:

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

    r2229 r2240  
    373373      buffers.clear(); 
    374374 
    375 /* don't know when release windows 
     375// don't know when release windows 
    376376 
    377377      if (!isAttachedModeEnabled()) 
     
    383383        } 
    384384      }  
    385 */ 
     385 
    386386   } 
    387387 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/context_server.cpp

    r2230 r2240  
    412412      } 
    413413    } while (! out) ;  
     414      MPI_Win_free(&windows[0]) ; 
     415      MPI_Win_free(&windows[1]) ; 
    414416  } 
    415417 
     
    441443      context->finalize(); 
    442444 
    443 /* don't know where release windows 
     445// don't know where release windows 
    444446      MPI_Win_free(&windows[0]) ; 
    445447      MPI_Win_free(&windows[1]) ; 
    446 */      
     448      
    447449      std::map<int, StdSize>::const_iterator itbMap = mapBufferSize_.begin(), 
    448450                           iteMap = mapBufferSize_.end(), itMap; 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/context.cpp

    r2230 r2240  
    742742          notifiedFinalized=client->isNotifiedFinalized() ; 
    743743        } while (!notifiedFinalized) ; 
     744        server->releaseBuffers(); 
    744745        client->releaseBuffers(); 
    745746        info(100)<<"DEBUG: context "<<getId()<<" release client ok"<<endl ; 
     
    770771      { 
    771772        closeAllFile(); 
     773        client->releaseBuffers(); 
    772774      } 
    773775 
Note: See TracChangeset for help on using the changeset viewer.