fxt_support.doxy 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * This file is part of the StarPU Handbook.
  3. * Copyright (C) 2009--2011 Universit@'e de Bordeaux
  4. * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2017 CNRS
  5. * Copyright (C) 2011, 2012 INRIA
  6. * See the file version.doxy for copying conditions.
  7. */
  8. /*! \defgroup API_FxT_Support FxT Support
  9. \struct starpu_fxt_codelet_event
  10. todo
  11. \ingroup API_FxT_Support
  12. \var char starpu_fxt_codelet_event::symbol[256]
  13. name of the codelet
  14. \var int starpu_fxt_codelet_event::workerid
  15. todo
  16. \var char starpu_fxt_codelet_event::perfmodel_archname[256]
  17. todo
  18. \var uint32_t starpu_fxt_codelet_event::hash
  19. todo
  20. \var size_t starpu_fxt_codelet_event::size
  21. todo
  22. \var float starpu_fxt_codelet_event::time
  23. todo
  24. \struct starpu_fxt_options
  25. todo
  26. \ingroup API_FxT_Support
  27. \var unsigned starpu_fxt_options::per_task_colour
  28. todo
  29. \var unsigned starpu_fxt_options::no_counter
  30. todo
  31. \var starpu_unsigned fxt_options::no_bus
  32. todo
  33. \var unsigned starpu_fxt_options::ninputfiles
  34. todo
  35. \var char *starpu_fxt_options::filenames[STARPU_FXT_MAX_FILES]
  36. todo
  37. \var char *starpu_fxt_options::out_paje_path
  38. todo
  39. \var char *starpu_fxt_options::distrib_time_path
  40. todo
  41. \var char *starpu_fxt_options::activity_path
  42. todo
  43. \var char *starpu_fxt_options::dag_path
  44. todo
  45. \var char *starpu_fxt_options::file_prefix
  46. In case we are going to gather multiple traces (e.g in the case of
  47. MPI processes), we may need to prefix the name of the containers.
  48. \var uint64_t starpu_fxt_options::file_offset
  49. In case we are going to gather multiple traces (e.g in the case of
  50. MPI processes), we may need to prefix the name of the containers.
  51. \var int starpu_fxt_options::file_rank
  52. In case we are going to gather multiple traces (e.g in the case of
  53. MPI processes), we may need to prefix the name of the containers.
  54. \var char starpu_fxt_options::worker_names[STARPU_NMAXWORKERS][256]
  55. Output parameters
  56. \var struct starpu_perfmodel_arch starpu_fxt_options::worker_archtypes[STARPU_NMAXWORKERS]
  57. Output parameters
  58. \var int starpu_fxt_options::nworkers
  59. Output parameters
  60. \var struct starpu_fxt_codelet_event **starpu_fxt_options::dumped_codelets
  61. In case we want to dump the list of codelets to an external tool
  62. \var long starpu_fxt_options::dumped_codelets_count
  63. In case we want to dump the list of codelets to an external tool
  64. \fn void starpu_fxt_options_init(struct starpu_fxt_options *options)
  65. \ingroup API_FxT_Support
  66. todo
  67. \fn void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
  68. \ingroup API_FxT_Support
  69. todo
  70. \fn void starpu_fxt_start_profiling(void)
  71. \ingroup API_FxT_Support
  72. Start recording the trace. The trace is by default started from
  73. starpu_init() call, but can be paused by using
  74. starpu_fxt_stop_profiling(), in which case
  75. starpu_fxt_start_profiling() should be called to resume recording
  76. events.
  77. \fn void starpu_fxt_stop_profiling(void)
  78. \ingroup API_FxT_Support
  79. Stop recording the trace. The trace is by default stopped when calling
  80. starpu_shutdown(). starpu_fxt_stop_profiling() can however be used to
  81. stop it earlier. starpu_fxt_start_profiling() can then be called to
  82. start recording it again, etc.
  83. \fn void starpu_fxt_autostart_profiling(int autostart)
  84. \ingroup API_FxT_Support
  85. Determine whether profiling should be started by starpu_init(), or only when
  86. starpu_fxt_start_profiling() is called. \p autostart should be 1 to do so, or 0 to
  87. prevent it.
  88. \fn void starpu_fxt_write_data_trace(char *filename_in)
  89. \ingroup API_FxT_Support
  90. todo
  91. \fn void starpu_fxt_trace_user_event(unsigned long code)
  92. \ingroup API_FxT_Support
  93. Add an event in the execution trace if FxT is enabled.
  94. \fn void starpu_fxt_trace_user_event_string(const char *s)
  95. \ingroup API_FxT_Support
  96. Add a string event in the execution trace if FxT is enabled.
  97. */