瀏覽代碼

improve comments

Samuel Thibault 13 年之前
父節點
當前提交
c7c9dee23b
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 5 5
      include/starpu_scheduler.h
  2. 3 3
      src/sched_policies/heft.c

+ 5 - 5
include/starpu_scheduler.h

@@ -74,11 +74,11 @@ struct starpu_sched_policy_s {
 	/* Insert a task into the scheduler. */
 	int (*push_task)(struct starpu_task *);
 
-	/* Notify the scheduler that a task was pushed on the worker. This
-	 * method is called when a task that was explicitely assigned to a
-	 * worker is scheduled. This method therefore permits to keep the state
-	 * of of the scheduler coherent even when StarPU bypasses the
-	 * scheduling strategy. */
+	/* Notify the scheduler that a task was directly pushed to the worker
+	 * without going through the scheduler. This method is called when a
+	 * task is explicitely assigned to a worker. This method therefore
+	 * permits to keep the timing state of the scheduler coherent even
+	 * when StarPU bypasses the scheduling strategy. */
 	void (*push_task_notify)(struct starpu_task *, int workerid);
 
 	/* Get a task from the scheduler. The mutex associated to the worker is

+ 3 - 3
src/sched_policies/heft.c

@@ -35,9 +35,9 @@ static double beta = STARPU_DEFAULT_BETA;
 static double _gamma = STARPU_DEFAULT_GAMMA;
 static double idle_power = 0.0;
 
-static double exp_start[STARPU_NMAXWORKERS];
-static double exp_end[STARPU_NMAXWORKERS];
-static double exp_len[STARPU_NMAXWORKERS];
+static double exp_start[STARPU_NMAXWORKERS]; /* of the first queued task */
+static double exp_end[STARPU_NMAXWORKERS];   /* of the set of queued tasks */
+static double exp_len[STARPU_NMAXWORKERS];   /* of the last queued task */
 static double ntasks[STARPU_NMAXWORKERS];
 
 const float alpha_minimum=0;