Browse Source

Debug multiple solutions simultanées

Arthur Brandao 6 years ago
parent
commit
24e1289cac
1 changed files with 2 additions and 1 deletions
  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);
     }
 }