Explorar o código

Fix initialization in case there'd be no data at all

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
04855f8ec7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mpi/src/starpu_mpi_select_node.c

+ 1 - 1
mpi/src/starpu_mpi_select_node.c

@@ -42,7 +42,7 @@ int _starpu_mpi_select_node_with_most_R_data(int me, int nb_nodes, struct starpu
 	size_t *size_on_nodes;
 	size_t max_size;
 	int i;
-	int xrank;
+	int xrank = me;
 
 	(void)me;
 	size_on_nodes = (size_t *)calloc(1, nb_nodes * sizeof(size_t));