Просмотр исходного кода

bug fix: the number of children was not set properly in the existing
implementation.

Cédric Augonnet лет назад: 15
Родитель
Сommit
42379b35dc
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      src/datawizard/interfaces/blas_filters.c

+ 1 - 2
src/datawizard/interfaces/blas_filters.c

@@ -88,8 +88,7 @@ unsigned starpu_vertical_block_filter_func(starpu_filter *f, data_state *root_da
 	nchunks = STARPU_MIN(ny, arg);
 	
 	/* first allocate the children data_state */
-	root_data->children = calloc(nchunks, sizeof(data_state));
-	STARPU_ASSERT(root_data->children);
+	starpu_data_create_children(root_data, nchunks);
 
 	/* actually create all the chunks */
 	unsigned chunk;