Explorar el Código

Debug multiple solutions simultanées

Arthur Brandao hace 6 años
padre
commit
24e1289cac
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Partie_1/Hybride/GSATThreadMPI.cpp

+ 2 - 1
Partie_1/Hybride/GSATThreadMPI.cpp

@@ -130,7 +130,8 @@ void GSATThreadMPI::mpiWait(GSATThreadMPI* gsat) {
 }
 
 void GSATThreadMPI::mpiNotify(int rank) {
+	MPI_Request request;
     for(int i = 0; i < world_size; i++) {
-        MPI_Send(&rank, 1, MPI_INT, i, 0, MPI_COMM_WORLD);
+        MPI_Isend(&rank, 1, MPI_INT, i, 0, MPI_COMM_WORLD, &request);
     }
 }