Samuel Thibault 14 lat temu
rodzic
commit
678bad1d12
1 zmienionych plików z 1 dodań i 1 usunięć
  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;