|
@@ -119,10 +119,10 @@ double starpu_mct_compute_fitness(struct _starpu_mct_data * d, double exp_end, d
|
|
+ d->_gamma * d->idle_power * (exp_end - max_exp_end);
|
|
+ d->_gamma * d->idle_power * (exp_end - max_exp_end);
|
|
}
|
|
}
|
|
|
|
|
|
-int starpu_mct_compute_execution_times(struct starpu_sched_component *component, struct starpu_task *task,
|
|
|
|
- double *estimated_lengths, double *estimated_transfer_length, int *suitable_components)
|
|
|
|
|
|
+unsigned starpu_mct_compute_execution_times(struct starpu_sched_component *component, struct starpu_task *task,
|
|
|
|
+ double *estimated_lengths, double *estimated_transfer_length, unsigned *suitable_components)
|
|
{
|
|
{
|
|
- int nsuitable_components = 0;
|
|
|
|
|
|
+ unsigned nsuitable_components = 0;
|
|
|
|
|
|
unsigned i;
|
|
unsigned i;
|
|
for(i = 0; i < component->nchildren; i++)
|
|
for(i = 0; i < component->nchildren; i++)
|
|
@@ -145,13 +145,13 @@ int starpu_mct_compute_execution_times(struct starpu_sched_component *component,
|
|
|
|
|
|
void starpu_mct_compute_expected_times(struct starpu_sched_component *component, struct starpu_task *task STARPU_ATTRIBUTE_UNUSED,
|
|
void starpu_mct_compute_expected_times(struct starpu_sched_component *component, struct starpu_task *task STARPU_ATTRIBUTE_UNUSED,
|
|
double *estimated_lengths, double *estimated_transfer_length, double *estimated_ends_with_task,
|
|
double *estimated_lengths, double *estimated_transfer_length, double *estimated_ends_with_task,
|
|
- double *min_exp_end_with_task, double *max_exp_end_with_task, int *suitable_components, int nsuitable_components)
|
|
|
|
|
|
+ double *min_exp_end_with_task, double *max_exp_end_with_task, unsigned *suitable_components, unsigned nsuitable_components)
|
|
{
|
|
{
|
|
- int i;
|
|
|
|
|
|
+ unsigned i;
|
|
double now = starpu_timing_now();
|
|
double now = starpu_timing_now();
|
|
for(i = 0; i < nsuitable_components; i++)
|
|
for(i = 0; i < nsuitable_components; i++)
|
|
{
|
|
{
|
|
- int icomponent = suitable_components[i];
|
|
|
|
|
|
+ unsigned icomponent = suitable_components[i];
|
|
struct starpu_sched_component * c = component->children[icomponent];
|
|
struct starpu_sched_component * c = component->children[icomponent];
|
|
/* Estimated availability of worker */
|
|
/* Estimated availability of worker */
|
|
double estimated_end = c->estimated_end(c);
|
|
double estimated_end = c->estimated_end(c);
|