StarPU Handbook
starpu_fxt.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2012-2013 Inria
4  * Copyright (C) 2013 Joris Pablo
5  * Copyright (C) 2010-2015 CNRS
6  * Copyright (C) 2010-2011,2013-2018 Université de Bordeaux
7  *
8  * StarPU is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation; either version 2.1 of the License, or (at
11  * your option) any later version.
12  *
13  * StarPU is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
18  */
19 
20 #ifndef __STARPU_FXT_H__
21 #define __STARPU_FXT_H__
22 
23 #include <starpu_perfmodel.h>
24 
25 #ifdef __cplusplus
26 extern "C"
27 {
28 #endif
29 
30 #define STARPU_FXT_MAX_FILES 64
31 
33 {
34  char symbol[256];
35  int workerid;
36  char perfmodel_archname[256];
37  uint32_t hash;
38  size_t size;
39  float time;
40 };
41 
43 {
44  unsigned per_task_colour;
45  unsigned no_events;
46  unsigned no_counter;
47  unsigned no_bus;
48  unsigned no_flops;
49  unsigned ninputfiles;
50  unsigned no_acquire;
51  unsigned internal;
52  char *filenames[STARPU_FXT_MAX_FILES];
53  char *out_paje_path;
54  char *distrib_time_path;
55  char *activity_path;
56  char *dag_path;
57  char *tasks_path;
58  char *data_path;
59  char *anim_path;
60 
61  char *file_prefix;
62  uint64_t file_offset;
63  int file_rank;
64 
65  char worker_names[STARPU_NMAXWORKERS][256];
66  struct starpu_perfmodel_arch worker_archtypes[STARPU_NMAXWORKERS];
67  int nworkers;
68 
71 };
72 
73 void starpu_fxt_options_init(struct starpu_fxt_options *options);
74 void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
75 void starpu_fxt_autostart_profiling(int autostart);
77 void starpu_fxt_stop_profiling(void);
78 void starpu_fxt_write_data_trace(char *filename_in);
79 void starpu_fxt_trace_user_event(unsigned long code);
80 void starpu_fxt_trace_user_event_string(const char *s);
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* __STARPU_FXT_H__ */
struct starpu_fxt_codelet_event ** dumped_codelets
Definition: starpu_fxt.h:69
char symbol[256]
Definition: starpu_fxt.h:34
void starpu_fxt_autostart_profiling(int autostart)
void starpu_fxt_stop_profiling(void)
int nworkers
Definition: starpu_fxt.h:67
void starpu_fxt_options_init(struct starpu_fxt_options *options)
void starpu_fxt_start_profiling(void)
void starpu_fxt_trace_user_event(unsigned long code)
Definition: starpu_fxt.h:32
long dumped_codelets_count
Definition: starpu_fxt.h:70
Definition: starpu_fxt.h:42
char * file_prefix
Definition: starpu_fxt.h:61
void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
Definition: starpu_perfmodel.h:47
#define STARPU_NMAXWORKERS
Definition: starpu_config.h:102
int file_rank
Definition: starpu_fxt.h:63
void starpu_fxt_trace_user_event_string(const char *s)
void starpu_fxt_write_data_trace(char *filename_in)
uint64_t file_offset
Definition: starpu_fxt.h:62