Browse Source

mpi/tests/insert_task_recv_cache.c: call starpu_mpi_data_register instead of starpu_data_set_rank and starpu_data_set_tag

Nathalie Furmento 11 years ago
parent
commit
6c0c19b1a2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      mpi/tests/insert_task_recv_cache.c

+ 1 - 2
mpi/tests/insert_task_recv_cache.c

@@ -74,8 +74,7 @@ void test_cache(int rank, int size, char *enabled, size_t *comm_amount)
 			/* I don't own that index, but will need it for my computations */
 			starpu_vector_data_register(&data_handles[i], -1, (uintptr_t)NULL, N, sizeof(unsigned));
 		}
-		starpu_data_set_rank(data_handles[i], mpi_rank);
-		starpu_data_set_tag(data_handles[i], i);
+		starpu_mpi_data_register(data_handles[i], i, mpi_rank);
 	}
 
 	// We call starpu_mpi_task_insert twice, when the cache is enabled, the 1st time puts the