Browse Source

mpi/examples/scatter_gather/mpi_scatter_gather.c: typo. replace hard-coded value by function argument

Nathalie Furmento 14 years ago
parent
commit
b0489f8abe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mpi/examples/scatter_gather/mpi_scatter_gather.c

+ 1 - 1
mpi/examples/scatter_gather/mpi_scatter_gather.c

@@ -66,7 +66,7 @@ int starpu_mpi_scatter(starpu_data_handle *data_handles, int count, int root, MP
 			if (data_handles[x])
 			{
 				int owner = starpu_data_get_rank(data_handles[x]);
-				if (owner != 0)
+				if (owner != root)
 				{
 					//fprintf(stderr, "[%d] Sending data[%d] to %d\n", rank, x, owner);
 					starpu_mpi_isend_detached(data_handles[x], owner, owner, comm, NULL, NULL);