Browse Source

dirty fix in node fifo for exp_start, I dont know how to handle it properly

Simon Archipoff 11 years ago
parent
commit
f7e1239dc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sched_policies/node_fifo.c

+ 1 - 1
src/sched_policies/node_fifo.c

@@ -27,7 +27,7 @@ static double fifo_estimated_end(struct starpu_sched_node * node)
 	int card = starpu_bitmap_cardinal(node->workers_in_ctx);
 	STARPU_ASSERT(card != 0);
 	STARPU_PTHREAD_MUTEX_LOCK(mutex);
-	double estimated_end = fifo->exp_start + fifo->exp_len / card;
+	double estimated_end = (fifo->exp_start = starpu_timing_now()) + fifo->exp_len / card;
 	STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
 
 	return estimated_end;