瀏覽代碼

mpi/tests/mpi_reduction.c: initialize memory

Nathalie Furmento 11 年之前
父節點
當前提交
1071eb99e2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mpi/tests/mpi_reduction.c

+ 1 - 0
mpi/tests/mpi_reduction.c

@@ -111,6 +111,7 @@ int main(int argc, char **argv)
 	handles = (starpu_data_handle_t *) malloc(nb_elements*sizeof(handles[0]));
 	for(x = 0; x < nb_elements; x+=step)
 	{
+		handles[x] = NULL;
 		int mpi_rank = my_distrib(x/step, size);
 		if (mpi_rank == my_rank)
 		{