Explorar o código

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

Cédric Augonnet %!s(int64=15) %!d(string=hai) anos
pai
achega
be1d410985
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	 * it is available in main memory, submit_mpi_req(req) is called and
 	 * 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);
 
 	return 0;