Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
1e1ef9f183
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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;