Loading...
Searching...
No Matches
starpu_fxt.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2013 Joris Pablo
* Copyright (C) 2013 Thibaut Lambert
* Copyright (C) 2020 Federal University of Rio Grande do Sul (UFRGS)
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or (at
* your option) any later version.
*
* StarPU is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU Lesser General Public License in COPYING.LGPL for more details.
*/
#ifndef __STARPU_FXT_H__
#define __STARPU_FXT_H__
#include <starpu_config.h>
#include <starpu_perfmodel.h>
#ifdef __cplusplus
extern "C" {
#endif
struct starpu_fxt_codelet_event
{
char symbol[2048];
int workerid;
char perfmodel_archname[256];
uint32_t hash;
size_t size;
float time;
};
struct starpu_fxt_mpi_offset
{
uint64_t local_time_start;
int64_t offset_start;
uint64_t local_time_end;
int64_t offset_end;
int nb_barriers;
};
struct starpu_fxt_options
{
unsigned per_task_colour;
unsigned no_events;
unsigned no_counter;
unsigned no_bus;
unsigned no_flops;
unsigned ninputfiles;
unsigned no_smooth;
unsigned no_acquire;
unsigned memory_states;
unsigned internal;
unsigned label_deps;
char *filenames[STARPU_FXT_MAX_FILES];
char *out_paje_path;
char *distrib_time_path;
char *activity_path;
char *sched_tasks_path;
char *dag_path;
char *tasks_path;
char *data_path;
char *papi_path;
char *comms_path;
char *number_events_path;
char *anim_path;
char *states_path;
char *dir;
char worker_names[STARPU_NMAXWORKERS][256];
int nworkers;
struct starpu_perfmodel_arch worker_archtypes[STARPU_NMAXWORKERS];
char *file_prefix;
struct starpu_fxt_mpi_offset file_offset;
int file_rank;
struct starpu_fxt_codelet_event **dumped_codelets;
long dumped_codelets_count;
};
void starpu_fxt_options_init(struct starpu_fxt_options *options);
void starpu_fxt_options_shutdown(struct starpu_fxt_options *options);
void starpu_fxt_generate_trace(struct starpu_fxt_options *options);
void starpu_fxt_autostart_profiling(int autostart);
void starpu_fxt_start_profiling(void);
void starpu_fxt_stop_profiling(void);
void starpu_fxt_write_data_trace(char *filename_in);
void starpu_fxt_write_data_trace_in_dir(char *filename_in, char *dir);
int starpu_fxt_is_enabled(void);
void starpu_fxt_trace_user_event(unsigned long code);
void starpu_fxt_trace_user_event_string(const char *s);
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_FXT_H__ */
starpu_fxt_mpi_offset::offset_start
int64_t offset_start
Definition starpu_fxt.h:54
starpu_fxt_options::file_prefix
char * file_prefix
Definition starpu_fxt.h:99
starpu_fxt_mpi_offset::offset_end
int64_t offset_end
Definition starpu_fxt.h:56
starpu_fxt_options::file_offset
struct starpu_fxt_mpi_offset file_offset
Definition starpu_fxt.h:105
starpu_fxt_options::dumped_codelets_count
long dumped_codelets_count
Definition starpu_fxt.h:122
starpu_fxt_mpi_offset::local_time_end
uint64_t local_time_end
Definition starpu_fxt.h:55
starpu_fxt_mpi_offset::nb_barriers
int nb_barriers
Definition starpu_fxt.h:57
starpu_fxt_options::file_rank
int file_rank
Definition starpu_fxt.h:111
starpu_fxt_mpi_offset::local_time_start
uint64_t local_time_start
Definition starpu_fxt.h:53
starpu_fxt_options::dumped_codelets
struct starpu_fxt_codelet_event ** dumped_codelets
Definition starpu_fxt.h:116
starpu_fxt_trace_user_event
void starpu_fxt_trace_user_event(unsigned long code)
starpu_fxt_stop_profiling
void starpu_fxt_stop_profiling(void)
starpu_fxt_start_profiling
void starpu_fxt_start_profiling(void)
starpu_fxt_is_enabled
int starpu_fxt_is_enabled(void)
starpu_fxt_autostart_profiling
void starpu_fxt_autostart_profiling(int autostart)
starpu_fxt_trace_user_event_string
void starpu_fxt_trace_user_event_string(const char *s)
starpu_fxt_codelet_event
Definition starpu_fxt.h:39
starpu_fxt_mpi_offset
Definition starpu_fxt.h:52
starpu_fxt_options
Definition starpu_fxt.h:65
STARPU_FXT_MAX_FILES
#define STARPU_FXT_MAX_FILES
Definition starpu_config.h:247
starpu_perfmodel_arch
Definition starpu_perfmodel.h:51
STARPU_NMAXWORKERS
#define STARPU_NMAXWORKERS
Definition starpu_config.h:296
starpu_config.h
starpu_perfmodel.h