|
@@ -27,7 +27,7 @@ static struct _starpu_task_execute_preds estimated_execute_preds(struct _starpu_
|
|
struct _starpu_task_execute_preds preds = _starpu_sched_node_average_estimated_execute_preds(node, task);
|
|
struct _starpu_task_execute_preds preds = _starpu_sched_node_average_estimated_execute_preds(node, task);
|
|
STARPU_PTHREAD_MUTEX_LOCK(mutex);
|
|
STARPU_PTHREAD_MUTEX_LOCK(mutex);
|
|
preds.expected_finish_time = _starpu_compute_expected_time(fifo->exp_start,
|
|
preds.expected_finish_time = _starpu_compute_expected_time(fifo->exp_start,
|
|
- preds.expected_finish_time + fifo->exp_end,
|
|
|
|
|
|
+ preds.expected_finish_time + fifo->exp_len / _starpu_bitmap_cardinal(node->workers),
|
|
preds.state == PERF_MODEL ? preds.expected_length + fifo->exp_len : fifo->exp_len,
|
|
preds.state == PERF_MODEL ? preds.expected_length + fifo->exp_len : fifo->exp_len,
|
|
preds.expected_transfer_length);
|
|
preds.expected_transfer_length);
|
|
STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
|
|
STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
|
|
@@ -40,7 +40,7 @@ static struct _starpu_task_execute_preds estimated_execute_preds(struct _starpu_
|
|
{
|
|
{
|
|
STARPU_PTHREAD_MUTEX_LOCK(mutex);
|
|
STARPU_PTHREAD_MUTEX_LOCK(mutex);
|
|
preds.expected_finish_time = _starpu_compute_expected_time(fifo->exp_start,
|
|
preds.expected_finish_time = _starpu_compute_expected_time(fifo->exp_start,
|
|
- preds.expected_finish_time + fifo->exp_end,
|
|
|
|
|
|
+ preds.expected_finish_time + fifo->exp_len / _starpu_bitmap_cardinal(node->workers),
|
|
preds.expected_length + fifo->exp_len,
|
|
preds.expected_length + fifo->exp_len,
|
|
preds.expected_transfer_length);
|
|
preds.expected_transfer_length);
|
|
STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
|
|
STARPU_PTHREAD_MUTEX_UNLOCK(mutex);
|
|
@@ -99,7 +99,7 @@ static int push_task(struct _starpu_sched_node * node, struct starpu_task * task
|
|
int ret = _starpu_prio_deque_push_task(fifo, task);
|
|
int ret = _starpu_prio_deque_push_task(fifo, task);
|
|
if(!isnan(task->predicted))
|
|
if(!isnan(task->predicted))
|
|
{
|
|
{
|
|
- task->predicted /= _starpu_bitmap_cardinal(node->workers);
|
|
|
|
|
|
+// task->predicted /= _starpu_bitmap_cardinal(node->workers);
|
|
fifo->exp_len += task->predicted;
|
|
fifo->exp_len += task->predicted;
|
|
fifo->exp_end = fifo->exp_start + fifo->exp_len;
|
|
fifo->exp_end = fifo->exp_start + fifo->exp_len;
|
|
}
|
|
}
|