Loading...
Searching...
No Matches
profiling.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2009-2025 University of Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2020-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 __PROFILING_H__
#define __PROFILING_H__
#include <starpu.h>
#include <starpu_profiling.h>
#include <starpu_util.h>
#include <common/config.h>
#pragma GCC visibility push(hidden)
enum _starpu_worker_status_index;
extern int _starpu_codelet_profiling;
extern int _starpu_energy_profiling;
struct starpu_profiling_task_info *_starpu_allocate_profiling_info_if_needed(struct starpu_task *task);
void _starpu_worker_update_profiling_info_executing(int workerid, int executed_tasks, uint64_t used_cycles, uint64_t stall_cycles, double consumed_energy, double flops);
void _starpu_worker_start_state(int workerid, enum _starpu_worker_status_index index, struct timespec *start_time);
/* Record the date when the worker left this state. This permits to measure
* how much time was spent in this state.
* stop_time is optional, if unspecified, _starpu_worker_start_state will just
* take the current time. */
void _starpu_worker_stop_state(int workerid, enum _starpu_worker_status_index index, struct timespec *stop_time);
void _starpu_initialize_busid_matrix(void);
int _starpu_register_bus(int src_node, int dst_node);
void _starpu_bus_update_profiling_info(int src_node, int dst_node, size_t size);
void _starpu_profiling_set_task_push_start_time(struct starpu_task *task);
void _starpu_profiling_set_task_push_end_time(struct starpu_task *task);
#ifdef STARPU_PAPI
void _starpu_profiling_papi_task_start_counters(struct starpu_task *task);
void _starpu_profiling_papi_task_stop_counters(struct starpu_task *task);
#endif
void _starpu_profiling_init(void);
void _starpu_profiling_start(void);
void _starpu_profiling_terminate(void);
#pragma GCC visibility pop
#endif // __PROFILING_H__
_starpu_worker_status_index
_starpu_worker_status_index
Definition errorcheck.h:32
_starpu_bus_update_profiling_info
void _starpu_bus_update_profiling_info(int src_node, int dst_node, size_t size)
_starpu_worker_start_state
void _starpu_worker_start_state(int workerid, enum _starpu_worker_status_index index, struct timespec *start_time)
_starpu_profiling_start
void _starpu_profiling_start(void)
_starpu_initialize_busid_matrix
void _starpu_initialize_busid_matrix(void)
_starpu_worker_update_profiling_info_executing
void _starpu_worker_update_profiling_info_executing(int workerid, int executed_tasks, uint64_t used_cycles, uint64_t stall_cycles, double consumed_energy, double flops)
_starpu_allocate_profiling_info_if_needed
struct starpu_profiling_task_info * _starpu_allocate_profiling_info_if_needed(struct starpu_task *task)
_starpu_profiling_init
void _starpu_profiling_init(void)
_starpu_register_bus
int _starpu_register_bus(int src_node, int dst_node)