Browse Source

restore idle_power variable for now, to fix build. starpu-top still needs to be fixed

Samuel Thibault 12 years ago
parent
commit
89c785692c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/sched_policies/deque_modeling_policy_data_aware.c

+ 2 - 0
src/sched_policies/deque_modeling_policy_data_aware.c

@@ -68,6 +68,7 @@ struct _starpu_dmda_data
 static double alpha = _STARPU_SCHED_ALPHA_DEFAULT;
 static double beta = _STARPU_SCHED_BETA_DEFAULT;
 static double _gamma = _STARPU_SCHED_GAMMA_DEFAULT;
+static double idle_power = 0.0;
 static const float alpha_minimum=0;
 static const float alpha_maximum=10.0;
 static const float beta_minimum=0;
@@ -864,6 +865,7 @@ static void initialize_dmda_policy(unsigned sched_ctx_id)
 		dt->idle_power = atof(strval_idle_power);
 
 #ifdef STARPU_USE_TOP
+	/* FIXME: broken, needs to access context variable */
 	starpu_top_register_parameter_float("DMDA_ALPHA", &alpha,
 					    alpha_minimum, alpha_maximum, param_modified);
 	starpu_top_register_parameter_float("DMDA_BETA", &beta,