ソースを参照

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

Samuel Thibault 10 年 前
コミット
04855f8ec7
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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));