Ver código fonte

Fix initialization in case there'd be no data at all: some very-well-known node has to be doing it, for instance 0

Samuel Thibault 10 anos atrás
pai
commit
ed8c3ac9e6
1 arquivos alterados com 1 adições e 1 exclusões
  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 = me;
+	int xrank = 0;
 
 	(void)me;
 	size_on_nodes = (size_t *)calloc(1, nb_nodes * sizeof(size_t));