浏览代码

fix tag_example3 termination

Samuel Thibault 15 年之前
父节点
当前提交
98d55dd7b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/tag_example/tag_example3.c

+ 1 - 1
examples/tag_example/tag_example3.c

@@ -92,7 +92,7 @@ static void create_task_grid(unsigned iter)
 		task->use_tag = 1;
 		task->tag_id = TAG(i, iter);
 
-		if (i != 0)
+		if (i != 1)
 			starpu_tag_declare_deps(TAG(i,iter), 1, TAG(i-1,iter));
 
 		starpu_submit_task(task);