lower_bound.doxy 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2013,2015,2017 CNRS
  4. * Copyright (C) 2009-2011,2014 Université de Bordeaux
  5. * Copyright (C) 2011-2012 Inria
  6. *
  7. * StarPU is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU Lesser General Public License as published by
  9. * the Free Software Foundation; either version 2.1 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * StarPU is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. *
  16. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. */
  18. /*! \defgroup API_Theoretical_Lower_Bound_on_Execution_Time Theoretical Lower Bound on Execution Time
  19. \brief Compute theoretical upper computation efficiency bound
  20. corresponding to some actual execution.
  21. \fn void starpu_bound_start(int deps, int prio)
  22. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  23. Start recording tasks (resets stats). \p deps tells whether
  24. dependencies should be recorded too (this is quite expensive)
  25. \fn void starpu_bound_stop(void)
  26. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  27. Stop recording tasks
  28. \fn void starpu_bound_print_dot(FILE *output)
  29. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  30. Emit the DAG that was recorded on \p output.
  31. \fn void starpu_bound_compute(double *res, double *integer_res, int integer)
  32. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  33. Get theoretical upper bound (in ms) (needs glpk support
  34. detected by configure script). It returns 0 if some performance models
  35. are not calibrated.
  36. \fn void starpu_bound_print_lp(FILE *output)
  37. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  38. Emit the Linear Programming system on \p output for the recorded
  39. tasks, in the lp format
  40. \fn void starpu_bound_print_mps(FILE *output)
  41. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  42. Emit the Linear Programming system on \p output for the recorded
  43. tasks, in the mps format
  44. \fn void starpu_bound_print(FILE *output, int integer)
  45. \ingroup API_Theoretical_Lower_Bound_on_Execution_Time
  46. Emit on \p output the statistics of actual execution vs theoretical upper bound.
  47. \p integer permits to choose between integer solving (which takes a
  48. long time but is correct), and relaxed solving (which provides an
  49. approximate solution).
  50. */