浏览代码

Add more starpu_do_schedule calls to fix testsuite with graph_test

Samuel Thibault 8 年之前
父节点
当前提交
563717068d
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/pipeline/pipeline.c

+ 4 - 1
examples/pipeline/pipeline.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  *
  * Copyright (C) 2012, 2013, 2014  CNRS
  * Copyright (C) 2012, 2013, 2014  CNRS
- * Copyright (C) 2012, 2014  Université de Bordeaux
+ * Copyright (C) 2012, 2014, 2016  Université de Bordeaux
  *
  *
  * StarPU is free software; you can redistribute it and/or modify
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
  * it under the terms of the GNU Lesser General Public License as published by
@@ -202,7 +202,10 @@ int main(void)
 		float y = 2*l;
 		float y = 2*l;
 		/* First wait for the C previous concurrent stages */
 		/* First wait for the C previous concurrent stages */
 		if (l >= C)
 		if (l >= C)
+		{
+			starpu_do_schedule();
 			sem_wait(&sems[l%C]);
 			sem_wait(&sems[l%C]);
+		}
 
 
 		/* Now submit the next stage */
 		/* Now submit the next stage */
 		ret = starpu_task_insert(&pipeline_codelet_x,
 		ret = starpu_task_insert(&pipeline_codelet_x,