Ignore:
Timestamp:
04/03/20 14:08:36 (5 years ago)
Author:
ymipsl
Message:

Remove freeing MPI communicator at finalize that can raise deadlock on some recent MPI library

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-2.5/src/server.cpp

    r1519 r1867  
    404404 
    405405      for (std::list<MPI_Comm>::iterator it = contextInterComms.begin(); it != contextInterComms.end(); it++) 
    406         MPI_Comm_free(&(*it)); 
     406        /* MPI_Comm_free(&(*it)) */; // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    407407 
    408408      for (std::list<MPI_Comm>::iterator it = contextIntraComms.begin(); it != contextIntraComms.end(); it++) 
     
    416416 
    417417        for (std::list<MPI_Comm>::iterator it = interCommRight.begin(); it != interCommRight.end(); it++) 
    418           MPI_Comm_free(&(*it)); 
     418          /* MPI_Comm_free(&(*it)) */ ; // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    419419 
    420420      MPI_Comm_free(&intraComm); 
     
    478478                MPI_Send(&msg,1,MPI_INT,0,0,*itr) ; 
    479479              } 
    480               MPI_Comm_free(&(*it)); 
     480              /* MPI_Comm_free(&(*it)); */ // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    481481              interCommLeft.erase(it) ; 
    482482              break ; 
Note: See TracChangeset for help on using the changeset viewer.