Selaa lähdekoodia

Add more starpu_do_schedule calls to fix testsuite with graph_test

Samuel Thibault 8 vuotta sitten
vanhempi
commit
563717068d
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      examples/pipeline/pipeline.c

+ 4 - 1
examples/pipeline/pipeline.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * 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
  * 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;
 		/* First wait for the C previous concurrent stages */
 		if (l >= C)
+		{
+			starpu_do_schedule();
 			sem_wait(&sems[l%C]);
+		}
 
 		/* Now submit the next stage */
 		ret = starpu_task_insert(&pipeline_codelet_x,