浏览代码

mpi/src: also registering communicators when calling starpu_mpi_xxxx
point-to-point communication functions. This fixes the bug when
exchanging data -- which have not been registered through
starpu_mpi_data_register -- outside MPI_COMM_WORLD. Thanks to Berenger
Bramas and Jean-Marie Couteyen for pointing out the bug.

Nathalie Furmento 10 年之前
父节点
当前提交
1e1ef9f183
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      mpi/src/starpu_mpi.c

+ 2 - 0
mpi/src/starpu_mpi.c

@@ -284,6 +284,8 @@ static struct _starpu_mpi_req *_starpu_mpi_isend_irecv_common(starpu_data_handle
 	_STARPU_MPI_LOG_IN();
 	_STARPU_MPI_INC_POSTED_REQUESTS(1);
 
+	_starpu_mpi_comm_register(comm);
+
 	/* Initialize the request structure */
 	_starpu_mpi_request_init(&req);
 	req->request_type = request_type;