浏览代码

Debug multiple solutions simultanées

Arthur Brandao 6 年之前
父节点
当前提交
24e1289cac
共有 1 个文件被更改,包括 2 次插入1 次删除
  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) {
 void GSATThreadMPI::mpiNotify(int rank) {
+	MPI_Request request;
     for(int i = 0; i < world_size; i++) {
     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);
     }
     }
 }
 }