Samuel Thibault 14 年之前
父節點
當前提交
678bad1d12
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/heat/dw_sparse_cg.c

+ 1 - 1
examples/heat/dw_sparse_cg.c

@@ -22,7 +22,7 @@
 
 static struct starpu_task *create_task(starpu_tag_t id)
 {
-	starpu_codelet *cl = calloc(sizeof(starpu_codelet));
+	starpu_codelet *cl = calloc(1,sizeof(starpu_codelet));
 
 	struct starpu_task *task = starpu_task_create();
 		task->cl = cl;