starpu_fxt.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* StarPU --- Runtime system for heterogeneous multicore architectures.
  2. *
  3. * Copyright (C) 2010-2011 Université de Bordeaux 1
  4. * Copyright (C) 2010, 2011 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. #define STARPU_FXT_MAX_FILES 64
  21. struct starpu_fxt_codelet_event
  22. {
  23. char symbol[256]; /* name of the codelet */
  24. int workerid;
  25. enum starpu_perf_archtype archtype;
  26. uint32_t hash;
  27. size_t size;
  28. float time;
  29. };
  30. struct starpu_fxt_options
  31. {
  32. unsigned per_task_colour;
  33. unsigned no_counter;
  34. unsigned no_bus;
  35. unsigned ninputfiles;
  36. char *filenames[STARPU_FXT_MAX_FILES];
  37. char *out_paje_path;
  38. char *distrib_time_path;
  39. char *activity_path;
  40. char *dag_path;
  41. /* In case we are going to gather multiple traces (eg in the case of
  42. * MPI processes), we may need to prefix the name of the containers. */
  43. char *file_prefix;
  44. uint64_t file_offset;
  45. int file_rank;
  46. /*
  47. * Output parameters
  48. */
  49. char worker_names[STARPU_NMAXWORKERS][256];
  50. enum starpu_perf_archtype worker_archtypes[STARPU_NMAXWORKERS];
  51. int nworkers;
  52. /* In case we want to dump the list of codelets to an external tool */
  53. struct starpu_fxt_codelet_event **dumped_codelets;
  54. long dumped_codelets_count;
  55. };
  56. void starpu_fxt_options_init(struct starpu_fxt_options *options);
  57. void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
  58. #endif /* __STARPU_FXT_H__ */