Explorar o código

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

Samuel Thibault %!s(int64=13) %!d(string=hai) anos
pai
achega
ed8ab711b7
Modificáronse 1 ficheiros con 1 adicións e 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