Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set default error handler to MPI_ERRORS_ARE_FATAL, as in a proper MPI implementation
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 18 Aug 2019 21:31:58 +0000 (23:31 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sun, 18 Aug 2019 21:31:58 +0000 (23:31 +0200)
src/smpi/mpi/smpi_comm.cpp
src/smpi/mpi/smpi_file.cpp
src/smpi/mpi/smpi_win.cpp

index a670b30..1ecccf4 100644 (file)
@@ -39,7 +39,7 @@ Comm::Comm(MPI_Group group, MPI_Topology topo, int smp, int in_id) : group_(grou
   leaders_map_     = nullptr;
   is_blocked_      = 0;
   info_            = MPI_INFO_NULL;
-  errhandler_      = MPI_ERRORS_RETURN;
+  errhandler_      = MPI_ERRORS_ARE_FATAL;
   static int global_id_=0;
   //First creation of comm is done before SIMIX_run, so only do comms for others
   if(in_id==MPI_UNDEFINED && smp==0 && this->rank()!=MPI_UNDEFINED ){
index a7d4c60..adb0f50 100644 (file)
@@ -28,7 +28,7 @@ namespace smpi{
     if (comm_->rank() == 0) {
       int size= comm_->size() + FP_SIZE;
       list_ = new char[size];
-      errhandler_=MPI_ERRORS_RETURN;
+      errhandler_=MPI_ERRORS_ARE_FATAL;
       memset(list_, 0, size);
       shared_file_pointer_ = new MPI_Offset();
       shared_mutex_ = s4u::Mutex::create();
index 6ba1b1c..953584f 100644 (file)
@@ -42,7 +42,7 @@ Win::Win(void *base, MPI_Aint size, int disp_unit, MPI_Info info, MPI_Comm comm,
     bar_ = new s4u::Barrier(comm_size);
   }
   mode_=0;
-  errhandler_=MPI_ERRORS_RETURN;
+  errhandler_=MPI_ERRORS_ARE_FATAL;
   comm->add_rma_win(this);
   comm->ref();