Loading...
Searching...
No Matches
starpu_sched_ctx_hypervisor.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2025 University of Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* 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_SCHED_CTX_HYPERVISOR_H__
#define __STARPU_SCHED_CTX_HYPERVISOR_H__
#ifdef __cplusplus
extern "C" {
#endif
struct starpu_sched_ctx_performance_counters
{
void (*notify_idle_cycle)(unsigned sched_ctx_id, int worker, double idle_time);
void (*notify_poped_task)(unsigned sched_ctx_id, int worker);
void (*notify_pushed_task)(unsigned sched_ctx_id, int worker);
void (*notify_post_exec_task)(struct starpu_task *task, size_t data_size, uint32_t footprint, int hypervisor_tag, double flops);
void (*notify_submitted_job)(struct starpu_task *task, uint32_t footprint, size_t data_size);
void (*notify_empty_ctx)(unsigned sched_ctx_id, struct starpu_task *task);
void (*notify_delete_context)(unsigned sched_ctx);
};
void starpu_sched_ctx_set_perf_counters(unsigned sched_ctx_id, void *perf_counters);
void starpu_sched_ctx_call_pushed_task_cb(int workerid, unsigned sched_ctx_id);
void starpu_sched_ctx_notify_hypervisor_exists(void);
unsigned starpu_sched_ctx_check_if_hypervisor_exists(void);
void starpu_sched_ctx_update_start_resizing_sample(unsigned sched_ctx_id, double start_sample);
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_SCHED_CTX_HYPERVISOR_H__ */
starpu_task::workerid
unsigned workerid
Definition starpu_task.h:1228
starpu_task
Definition starpu_task.h:689
starpu_sched_ctx_performance_counters::notify_poped_task
void(* notify_poped_task)(unsigned sched_ctx_id, int worker)
Definition starpu_sched_ctx_hypervisor.h:50
starpu_sched_ctx_performance_counters::notify_post_exec_task
void(* notify_post_exec_task)(struct starpu_task *task, size_t data_size, uint32_t footprint, int hypervisor_tag, double flops)
Definition starpu_sched_ctx_hypervisor.h:62
starpu_sched_ctx_performance_counters::notify_pushed_task
void(* notify_pushed_task)(unsigned sched_ctx_id, int worker)
Definition starpu_sched_ctx_hypervisor.h:57
starpu_sched_ctx_call_pushed_task_cb
void starpu_sched_ctx_call_pushed_task_cb(int workerid, unsigned sched_ctx_id)
starpu_sched_ctx_check_if_hypervisor_exists
unsigned starpu_sched_ctx_check_if_hypervisor_exists(void)
starpu_sched_ctx_performance_counters::notify_delete_context
void(* notify_delete_context)(unsigned sched_ctx)
Definition starpu_sched_ctx_hypervisor.h:74
starpu_sched_ctx_performance_counters::notify_idle_cycle
void(* notify_idle_cycle)(unsigned sched_ctx_id, int worker, double idle_time)
Definition starpu_sched_ctx_hypervisor.h:44
starpu_sched_ctx_notify_hypervisor_exists
void starpu_sched_ctx_notify_hypervisor_exists(void)
starpu_sched_ctx_performance_counters::notify_submitted_job
void(* notify_submitted_job)(struct starpu_task *task, uint32_t footprint, size_t data_size)
Definition starpu_sched_ctx_hypervisor.h:67
starpu_sched_ctx_set_perf_counters
void starpu_sched_ctx_set_perf_counters(unsigned sched_ctx_id, void *perf_counters)
starpu_sched_ctx_performance_counters
Definition starpu_sched_ctx_hypervisor.h:39