Browse Source

datawizard_progress: Check that we are not already scheduling a task

Samuel Thibault 4 years ago
parent
commit
b5298108cc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/datawizard/datawizard.c

+ 5 - 0
src/datawizard/datawizard.c

@@ -124,6 +124,11 @@ int __starpu_datawizard_progress(enum _starpu_may_alloc may_alloc, unsigned push
 
 		return ret;
 	}
+
+	/* processing requests may release some tasks, we cannot be already
+	 * scheduling a task. */
+	STARPU_ASSERT(!worker->state_sched_op_pending);
+
 	if (worker->set)
 		/* Runing one of the workers of a worker set. The reference for
 		 * driving memory is its worker 0 (see registrations in topology.c) */