Changeset 1867


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

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

YM

Location:
XIOS/branchs/xios-2.5/src
Files:
3 edited

Legend:

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

    r1865 r1867  
    248248 
    249249 
    250       MPI_Comm_free(&interComm); 
     250      /* MPI_Comm_free(&interComm); */ // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    251251      for (std::list<MPI_Comm>::iterator it = contextInterComms.begin(); it != contextInterComms.end(); it++) 
    252         MPI_Comm_free(&(*it)); 
     252        /* MPI_Comm_free(&(*it)) */ ; // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    253253      MPI_Comm_free(&intraComm); 
    254254 
  • XIOS/branchs/xios-2.5/src/node/context.cpp

    r1489 r1867  
    476476         //! Free internally allocated communicators 
    477477         for (std::list<MPI_Comm>::iterator it = comms.begin(); it != comms.end(); ++it) 
    478            MPI_Comm_free(&(*it)); 
     478           /* MPI_Comm_free(&(*it)) */ ; // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    479479         comms.clear(); 
    480480 
     
    518518         //! Free internally allocated communicators 
    519519         for (std::list<MPI_Comm>::iterator it = comms.begin(); it != comms.end(); ++it) 
    520            MPI_Comm_free(&(*it)); 
     520           /* MPI_Comm_free(&(*it)) */;  // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    521521         comms.clear(); 
    522522 
     
    532532   { 
    533533     for (std::list<MPI_Comm>::iterator it = comms.begin(); it != comms.end(); ++it) 
    534        MPI_Comm_free(&(*it)); 
     534       /* MPI_Comm_free(&(*it)) */ ; // WARNING remove freeing communicator !! --> deadlock raised, to be checked 
    535535     comms.clear(); 
    536536   } 
  • 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.