|
@@ -797,7 +797,7 @@ static void notify_poped_task(unsigned sched_ctx, int worker, struct starpu_task
|
|
|
hypervisor.sched_ctx_w[sched_ctx].remaining_flops -= task->flops;
|
|
|
/* if(hypervisor.sched_ctx_w[sched_ctx].remaining_flops < 0.0) */
|
|
|
/* hypervisor.sched_ctx_w[sched_ctx].remaining_flops = 0.0; */
|
|
|
- double ctx_elapsed_flops = sc_hypervisor_get_elapsed_flops_per_sched_ctx(&hypervisor.sched_ctx_w[sched_ctx]);
|
|
|
+// double ctx_elapsed_flops = sc_hypervisor_get_elapsed_flops_per_sched_ctx(&hypervisor.sched_ctx_w[sched_ctx]);
|
|
|
/* printf("*****************STARPU_STARPU_STARPU: decrement %lf flops remaining flops %lf total flops %lf elapseed flops %lf in ctx %d \n", */
|
|
|
/* task->flops, hypervisor.sched_ctx_w[sched_ctx].remaining_flops, hypervisor.sched_ctx_w[sched_ctx].total_flops, ctx_elapsed_flops, sched_ctx); */
|
|
|
starpu_pthread_mutex_unlock(&act_hypervisor_mutex);
|
|
@@ -891,7 +891,7 @@ static void notify_delete_context(unsigned sched_ctx)
|
|
|
void sc_hypervisor_size_ctxs(unsigned *sched_ctxs, int nsched_ctxs, int *workers, int nworkers)
|
|
|
{
|
|
|
starpu_pthread_mutex_lock(&act_hypervisor_mutex);
|
|
|
- int curr_nsched_ctxs = sched_ctxs == NULL ? hypervisor.nsched_ctxs : nsched_ctxs;
|
|
|
+ unsigned curr_nsched_ctxs = sched_ctxs == NULL ? hypervisor.nsched_ctxs : (unsigned)nsched_ctxs;
|
|
|
unsigned *curr_sched_ctxs = sched_ctxs == NULL ? hypervisor.sched_ctxs : sched_ctxs;
|
|
|
starpu_pthread_mutex_unlock(&act_hypervisor_mutex);
|
|
|
unsigned s;
|