浏览代码

When sending data, we need a read-only access instead of a write-only mode.

Cédric Augonnet 15 年之前
父节点
当前提交
be1d410985
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mpi/starpu_mpi.c

+ 1 - 1
mpi/starpu_mpi.c

@@ -66,7 +66,7 @@ int starpu_mpi_isend(starpu_data_handle data_handle, struct starpu_mpi_req_s *re
 	/* Asynchronously request StarPU to fetch the data in main memory: when
 	/* Asynchronously request StarPU to fetch the data in main memory: when
 	 * it is available in main memory, submit_mpi_req(req) is called and
 	 * it is available in main memory, submit_mpi_req(req) is called and
 	 * the request is actually submitted  */
 	 * the request is actually submitted  */
-	starpu_sync_data_with_mem_non_blocking(data_handle, STARPU_W,
+	starpu_sync_data_with_mem_non_blocking(data_handle, STARPU_R,
 			submit_mpi_req, (void *)req);
 			submit_mpi_req, (void *)req);
 
 
 	return 0;
 	return 0;