Browse Source

From Lionel: prio_deque: documenting assumptions on exp_* fields

Samuel Thibault 8 years ago
parent
commit
c59bbd5c43
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/sched_policies/prio_deque.h

+ 5 - 0
src/sched_policies/prio_deque.h

@@ -25,6 +25,11 @@ struct _starpu_prio_deque
 	int size_array;
 	int size_array;
 	unsigned ntasks;
 	unsigned ntasks;
 	unsigned nprocessed;
 	unsigned nprocessed;
+	// Assumptions: 
+	// exp_len is the sum of predicted_length + predicted_tansfer of all tasks in list
+	// exp_start is the time at which the first task of list can start
+	// exp_end = exp_start + exp_end
+	// Careful: those are NOT maintained by the prio_queue operations
 	double exp_start, exp_end, exp_len;
 	double exp_start, exp_end, exp_len;
 };
 };