starpu_fxt.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2011, 2013 Université de Bordeaux 1
  4. * Copyright (C) 2010, 2011, 2013 Centre National de la Recherche Scientifique
  5. *
  6. * StarPU is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU Lesser General Public License as published by
  8. * the Free Software Foundation; either version 2.1 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * StarPU is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. *
  15. * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. */
  17. #ifndef __STARPU_FXT_H__
  18. #define __STARPU_FXT_H__
  19. #include <starpu_perfmodel.h>
  20. #ifdef __cplusplus
  21. extern "C"
  22. {
  23. #endif
  24. #define STARPU_FXT_MAX_FILES 64
  25. struct starpu_fxt_codelet_event
  26. {
  27. char symbol[256];
  28. int workerid;
  29. enum starpu_perfmodel_archtype archtype;
  30. uint32_t hash;
  31. size_t size;
  32. float time;
  33. };
  34. struct starpu_fxt_options
  35. {
  36. unsigned per_task_colour;
  37. unsigned no_counter;
  38. unsigned no_bus;
  39. unsigned ninputfiles;
  40. char *filenames[STARPU_FXT_MAX_FILES];
  41. char *out_paje_path;
  42. char *distrib_time_path;
  43. char *activity_path;
  44. char *dag_path;
  45. char *file_prefix;
  46. uint64_t file_offset;
  47. int file_rank;
  48. char worker_names[STARPU_NMAXWORKERS][256];
  49. enum starpu_perfmodel_archtype worker_archtypes[STARPU_NMAXWORKERS];
  50. int nworkers;
  51. struct starpu_fxt_codelet_event **dumped_codelets;
  52. long dumped_codelets_count;
  53. };
  54. void starpu_fxt_options_init(struct starpu_fxt_options *options);
  55. void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
  56. void starpu_fxt_start_profiling(void);
  57. void starpu_fxt_stop_profiling(void);
  58. #ifdef __cplusplus
  59. }
  60. #endif
  61. #endif /* __STARPU_FXT_H__ */