StarPU Handbook - StarPU Language Bindings
Loading...
Searching...
No Matches
starpu_fxt.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2010-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4 * Copyright (C) 2013 Joris Pablo
5 * Copyright (C) 2013 Thibaut Lambert
6 * Copyright (C) 2020 Federal University of Rio Grande do Sul (UFRGS)
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_config.h>
24#include <starpu_perfmodel.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
39{
40 char symbol[2048];
41 int workerid;
42 char perfmodel_archname[256];
43 uint32_t hash;
44 size_t size;
45 float time;
46};
47
60
65{
66 unsigned per_task_colour;
67 unsigned no_events;
68 unsigned no_counter;
69 unsigned no_bus;
70 unsigned no_flops;
71 unsigned ninputfiles;
72 unsigned no_smooth;
73 unsigned no_acquire;
74 unsigned memory_states;
75 unsigned internal;
76 unsigned label_deps;
77 unsigned use_task_color;
78 char *filenames[STARPU_FXT_MAX_FILES];
79 char *out_paje_path;
80 char *distrib_time_path;
81 char *activity_path;
82 char *sched_tasks_path;
83 char *dag_path;
84 char *tasks_path;
85 char *data_path;
86 char *papi_path;
87 char *comms_path;
88 char *number_events_path;
89 char *anim_path;
90 char *states_path;
91 char *dir;
92 char worker_names[STARPU_NMAXWORKERS][256];
93 int nworkers;
94 struct starpu_perfmodel_arch worker_archtypes[STARPU_NMAXWORKERS];
95
101
107
113
118
124};
125
126void starpu_fxt_options_init(struct starpu_fxt_options *options);
127void starpu_fxt_options_shutdown(struct starpu_fxt_options *options);
128void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
129
138
148
157
158void starpu_fxt_write_data_trace(char *filename_in);
159void starpu_fxt_write_data_trace_in_dir(char *filename_in, char *dir);
160
165
170void starpu_fxt_trace_user_event(unsigned long code);
171
177
180#ifdef __cplusplus
181}
182#endif
183
184#endif /* __STARPU_FXT_H__ */
int64_t offset_start
Definition starpu_fxt.h:54
char * file_prefix
Definition starpu_fxt.h:100
int64_t offset_end
Definition starpu_fxt.h:56
struct starpu_fxt_mpi_offset file_offset
Definition starpu_fxt.h:106
long dumped_codelets_count
Definition starpu_fxt.h:123
uint64_t local_time_end
Definition starpu_fxt.h:55
int nb_barriers
Definition starpu_fxt.h:57
int file_rank
Definition starpu_fxt.h:112
uint64_t local_time_start
Definition starpu_fxt.h:53
struct starpu_fxt_codelet_event ** dumped_codelets
Definition starpu_fxt.h:117
void starpu_fxt_trace_user_event(unsigned long code)
void starpu_fxt_stop_profiling(void)
void starpu_fxt_start_profiling(void)
int starpu_fxt_is_enabled(void)
void starpu_fxt_autostart_profiling(int autostart)
void starpu_fxt_trace_user_event_string(const char *s)
Definition starpu_fxt.h:39
Definition starpu_fxt.h:52
Definition starpu_fxt.h:65
#define STARPU_FXT_MAX_FILES
Definition starpu_config.h:263
Definition starpu_perfmodel.h:51
#define STARPU_NMAXWORKERS
Definition starpu_config.h:312