helper_mct.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2013-2014 Université de Bordeaux
  4. *
  5. * StarPU is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU Lesser General Public License as published by
  7. * the Free Software Foundation; either version 2.1 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * StarPU is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. *
  14. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. */
  16. struct _starpu_mct_data
  17. {
  18. double alpha;
  19. double beta;
  20. double _gamma;
  21. double idle_power;
  22. };
  23. struct _starpu_mct_data *starpu_mct_init_parameters(struct starpu_sched_component_mct_data *params);
  24. int starpu_mct_compute_expected_times(struct starpu_sched_component *component, struct starpu_task *task,
  25. double *estimated_lengths, double *estimated_transfer_length, double *estimated_ends_with_task,
  26. double *min_exp_end_with_task, double *max_exp_end_with_task, int *suitable_components);
  27. double starpu_mct_compute_fitness(struct _starpu_mct_data * d, double exp_end, double min_exp_end, double max_exp_end, double transfer_len, double local_power);