浏览代码

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

Cédric Augonnet 15 年之前
父节点
当前提交
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);
 	nchunks = STARPU_MIN(ny, arg);
 	
 	
 	/* first allocate the children data_state */
 	/* 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 */
 	/* actually create all the chunks */
 	unsigned chunk;
 	unsigned chunk;