StarPU Handbook

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
starpu_fxt.h
Go to the documentation of this file.
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
18 #ifndef __STARPU_FXT_H__
19 #define __STARPU_FXT_H__
20
21 #include <starpu_perfmodel.h>
22
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27
28 #define STARPU_FXT_MAX_FILES 64
29
30 struct starpu_fxt_codelet_event
31 {
32 char symbol[256];
33 int workerid;
34 enum starpu_perfmodel_archtype archtype;
35 uint32_t hash;
36 size_t size;
37 float time;
38 };
39
40 struct starpu_fxt_options
41 {
42 unsigned per_task_colour;
43 unsigned no_counter;
44 unsigned no_bus;
45 unsigned ninputfiles;
46 char *filenames[STARPU_FXT_MAX_FILES];
47 char *out_paje_path;
48 char *distrib_time_path;
49 char *activity_path;
50 char *dag_path;
51
52 char *file_prefix;
53 uint64_t file_offset;
54 int file_rank;
55
56 char worker_names[STARPU_NMAXWORKERS][256];
57 enum starpu_perfmodel_archtype worker_archtypes[STARPU_NMAXWORKERS];
58 int nworkers;
59
60 struct starpu_fxt_codelet_event **dumped_codelets;
61 long dumped_codelets_count;
62 };
63
64 void starpu_fxt_options_init(struct starpu_fxt_options *options);
65 void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
66 void starpu_fxt_start_profiling(void);
67 void starpu_fxt_stop_profiling(void);
68
69 #ifdef __cplusplus
70 }
71 #endif
72
73 #endif /* __STARPU_FXT_H__ */
starpu_fxt_options::dumped_codelets_count
long dumped_codelets_count
Definition: starpu_fxt.h:61
starpu_fxt_stop_profiling
void starpu_fxt_stop_profiling(void)
starpu_perfmodel.h
starpu_fxt_options::file_offset
uint64_t file_offset
Definition: starpu_fxt.h:53
starpu_fxt_options::dumped_codelets
struct starpu_fxt_codelet_event ** dumped_codelets
Definition: starpu_fxt.h:60
starpu_fxt_options_init
void starpu_fxt_options_init(struct starpu_fxt_options *options)
starpu_fxt_start_profiling
void starpu_fxt_start_profiling(void)
starpu_fxt_codelet_event
Definition: starpu_fxt.h:30
starpu_fxt_options::file_rank
int file_rank
Definition: starpu_fxt.h:54
starpu_fxt_options
Definition: starpu_fxt.h:40
starpu_fxt_generate_trace
void starpu_fxt_generate_trace(struct starpu_fxt_options *options)
STARPU_NMAXWORKERS
#define STARPU_NMAXWORKERS
Definition: starpu_config.h:74
starpu_perfmodel_archtype
starpu_perfmodel_archtype
Definition: starpu_perfmodel.h:35
starpu_fxt_options::file_prefix
char * file_prefix
Definition: starpu_fxt.h:52
starpu_fxt_options::worker_archtypes
enum starpu_perfmodel_archtype worker_archtypes[STARPU_NMAXWORKERS]
Definition: starpu_fxt.h:57
starpu_fxt_codelet_event::symbol
char symbol[256]
Definition: starpu_fxt.h:32
starpu_fxt_options::worker_names
char worker_names[STARPU_NMAXWORKERS][256]
Definition: starpu_fxt.h:56
starpu_fxt_options::nworkers
int nworkers
Definition: starpu_fxt.h:58