Explorar el Código

Do not push tasks which have their dependencies fullfilled but which weren't submitted yet

Samuel Thibault hace 13 años
padre
commit
ed8ab711b7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/dependencies/cg.c

+ 1 - 1
src/core/dependencies/cg.c

@@ -138,7 +138,7 @@ void _starpu_notify_cg(struct _starpu_cg *cg)
 				unsigned ndeps_completed =
 					STARPU_ATOMIC_ADD(&job_successors->ndeps_completed, 1);
 
-				if (job_successors->ndeps == ndeps_completed)
+				if (j->submitted && job_successors->ndeps == ndeps_completed)
 				{
 					/* Note that this also ensures that tag deps are
 					 * fulfilled. This counter is reseted only when the