Loading...
Searching...
No Matches
starpu_task.h
Go to the documentation of this file.
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2009-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2011 Télécom-SudParis
* Copyright (C) 2016 Uppsala University
*
* 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_TASK_H__
#define __STARPU_TASK_H__
#include <starpu.h>
#include <errno.h>
#include <assert.h>
#if defined STARPU_USE_CUDA && !defined STARPU_DONT_INCLUDE_CUDA_HEADERS
# include <cuda.h>
#endif
#ifdef __cplusplus
extern "C"
{
#endif
#define STARPU_NOWHERE ((1ULL)<<0)
#define STARPU_CPU ((1ULL)<<1)
#define STARPU_CUDA ((1ULL)<<3)
#define STARPU_OPENCL ((1ULL)<<6)
#define STARPU_MIC ((1ULL)<<7)
#define STARPU_MPI_MS ((1ULL)<<9)
#define STARPU_CODELET_SIMGRID_EXECUTE (1<<0)
#define STARPU_CODELET_SIMGRID_EXECUTE_AND_INJECT (1<<1)
#define STARPU_CODELET_NOPLANS (1<<2)
#define STARPU_CUDA_ASYNC (1<<0)
#define STARPU_OPENCL_ASYNC (1<<0)
#define STARPU_MAIN_RAM 0
enum starpu_codelet_type
{
STARPU_SEQ = 0,
STARPU_SPMD,
STARPU_FORKJOIN
};
enum starpu_task_status
{
STARPU_TASK_INIT,
#define STARPU_TASK_INIT 0
#define STARPU_TASK_INVALID STARPU_TASK_INIT
STARPU_TASK_BLOCKED,
STARPU_TASK_READY,
STARPU_TASK_RUNNING,
STARPU_TASK_FINISHED,
STARPU_TASK_BLOCKED_ON_TAG,
STARPU_TASK_BLOCKED_ON_TASK,
STARPU_TASK_BLOCKED_ON_DATA,
STARPU_TASK_STOPPED
};
typedef void (*starpu_cpu_func_t)(void **, void*);
typedef void (*starpu_cuda_func_t)(void **, void*);
typedef void (*starpu_opencl_func_t)(void **, void*);
typedef void (*starpu_mic_kernel_t)(void **, void*);
typedef starpu_mic_kernel_t (*starpu_mic_func_t)(void);
typedef void (*starpu_mpi_ms_kernel_t)(void **, void*);
typedef starpu_mpi_ms_kernel_t (*starpu_mpi_ms_func_t)(void);
#define STARPU_MULTIPLE_CPU_IMPLEMENTATIONS ((starpu_cpu_func_t) -1)
#define STARPU_MULTIPLE_CUDA_IMPLEMENTATIONS ((starpu_cuda_func_t) -1)
#define STARPU_MULTIPLE_OPENCL_IMPLEMENTATIONS ((starpu_opencl_func_t) -1)
#define STARPU_VARIABLE_NBUFFERS (-1)
#define STARPU_SPECIFIC_NODE_LOCAL (-1)
#define STARPU_SPECIFIC_NODE_CPU (-2)
#define STARPU_SPECIFIC_NODE_SLOW (-3)
#define STARPU_SPECIFIC_NODE_FAST (-4)
struct starpu_task;
struct starpu_codelet
{
uint32_t where;
int (*can_execute)(unsigned workerid, struct starpu_task *task, unsigned nimpl);
enum starpu_codelet_type type;
int max_parallelism;
starpu_cpu_func_t cpu_func STARPU_DEPRECATED;
starpu_cuda_func_t cuda_func STARPU_DEPRECATED;
starpu_opencl_func_t opencl_func STARPU_DEPRECATED;
starpu_cpu_func_t cpu_funcs[STARPU_MAXIMPLEMENTATIONS];
starpu_cuda_func_t cuda_funcs[STARPU_MAXIMPLEMENTATIONS];
char cuda_flags[STARPU_MAXIMPLEMENTATIONS];
starpu_opencl_func_t opencl_funcs[STARPU_MAXIMPLEMENTATIONS];
char opencl_flags[STARPU_MAXIMPLEMENTATIONS];
starpu_mic_func_t mic_funcs[STARPU_MAXIMPLEMENTATIONS];
starpu_mpi_ms_func_t mpi_ms_funcs[STARPU_MAXIMPLEMENTATIONS];
const char *cpu_funcs_name[STARPU_MAXIMPLEMENTATIONS];
int nbuffers;
enum starpu_data_access_mode modes[STARPU_NMAXBUFS];
enum starpu_data_access_mode *dyn_modes;
unsigned specific_nodes;
int nodes[STARPU_NMAXBUFS];
int *dyn_nodes;
struct starpu_perfmodel *model;
struct starpu_perfmodel *energy_model;
unsigned long per_worker_stats[STARPU_NMAXWORKERS];
const char *name;
unsigned color;
void (*callback_func)(void *);
int flags;
int checked;
};
struct starpu_data_descr
{
starpu_data_handle_t handle;
enum starpu_data_access_mode mode;
};
struct starpu_task
{
const char *name;
struct starpu_codelet *cl;
int32_t where;
int nbuffers;
/* Keep dyn_handles, dyn_interfaces and dyn_modes before the
* equivalent static arrays, so we can detect dyn_handles
* being NULL while nbuffers being bigger that STARPU_NMAXBUFS
* (otherwise the overflow would put a non-NULL) */
starpu_data_handle_t *dyn_handles;
void **dyn_interfaces;
enum starpu_data_access_mode *dyn_modes;
starpu_data_handle_t handles[STARPU_NMAXBUFS];
void *interfaces[STARPU_NMAXBUFS];
enum starpu_data_access_mode modes[STARPU_NMAXBUFS];
unsigned char *handles_sequential_consistency;
void *cl_arg;
size_t cl_arg_size;
void (*callback_func)(void *);
void *callback_arg;
void (*prologue_callback_func)(void *);
void *prologue_callback_arg;
void (*prologue_callback_pop_func)(void *);
void *prologue_callback_pop_arg;
starpu_tag_t tag_id;
unsigned cl_arg_free:1;
unsigned callback_arg_free:1;
unsigned prologue_callback_arg_free:1;
unsigned prologue_callback_pop_arg_free:1;
unsigned use_tag:1;
unsigned sequential_consistency:1;
unsigned synchronous:1;
unsigned execute_on_a_specific_worker:1;
unsigned detach:1;
unsigned destroy:1;
unsigned regenerate:1;
unsigned no_submitorder:1;
unsigned char mf_skip;
unsigned char scheduled;
unsigned char prefetched;
unsigned workerid;
unsigned workerorder;
uint32_t *workerids;
unsigned workerids_len;
int priority;
enum starpu_task_status status;
int magic;
unsigned type;
unsigned color;
unsigned sched_ctx;
int hypervisor_tag;
unsigned possibly_parallel;
starpu_task_bundle_t bundle;
struct starpu_profiling_task_info *profiling_info;
double flops;
double predicted;
double predicted_transfer;
double predicted_start;
struct starpu_task *prev;
struct starpu_task *next;
void *starpu_private;
#ifdef STARPU_OPENMP
struct starpu_omp_task *omp_task;
#else
void *omp_task;
#endif
unsigned nb_termination_call_required;
void *sched_data;
};
#define STARPU_TASK_TYPE_NORMAL 0
#define STARPU_TASK_TYPE_INTERNAL (1<<0)
#define STARPU_TASK_TYPE_DATA_ACQUIRE (1<<1)
/* Note: remember to update starpu_task_init as well */
#define STARPU_TASK_INITIALIZER \
{ \
.cl = NULL, \
.where = -1, \
.cl_arg = NULL, \
.cl_arg_size = 0, \
.callback_func = NULL, \
.callback_arg = NULL, \
.priority = STARPU_DEFAULT_PRIO, \
.use_tag = 0, \
.sequential_consistency = 1, \
.synchronous = 0, \
.execute_on_a_specific_worker = 0, \
.workerorder = 0, \
.bundle = NULL, \
.detach = 1, \
.destroy = 0, \
.regenerate = 0, \
.status = STARPU_TASK_INIT, \
.profiling_info = NULL, \
.predicted = NAN, \
.predicted_transfer = NAN, \
.predicted_start = NAN, \
.starpu_private = NULL, \
.magic = 42, \
.type = 0, \
.color = 0, \
.sched_ctx = STARPU_NMAX_SCHED_CTXS, \
.hypervisor_tag = 0, \
.flops = 0.0, \
.scheduled = 0, \
.prefetched = 0, \
.dyn_handles = NULL, \
.dyn_interfaces = NULL, \
.dyn_modes = NULL, \
.name = NULL, \
.possibly_parallel = 0 \
}
#define STARPU_TASK_GET_NBUFFERS(task) ((unsigned)((task)->cl->nbuffers == STARPU_VARIABLE_NBUFFERS ? ((task)->nbuffers) : ((task)->cl->nbuffers)))
#define STARPU_TASK_GET_HANDLE(task, i) (((task)->dyn_handles) ? (task)->dyn_handles[i] : (task)->handles[i])
#define STARPU_TASK_GET_HANDLES(task) (((task)->dyn_handles) ? (task)->dyn_handles : (task)->handles)
#define STARPU_TASK_SET_HANDLE(task, handle, i) \
do { if ((task)->dyn_handles) (task)->dyn_handles[i] = handle; else (task)->handles[i] = handle; } while(0)
#define STARPU_CODELET_GET_MODE(codelet, i) \
(((codelet)->dyn_modes) ? (codelet)->dyn_modes[i] : (assert(i < STARPU_NMAXBUFS), (codelet)->modes[i]))
#define STARPU_CODELET_SET_MODE(codelet, mode, i) \
do { if ((codelet)->dyn_modes) (codelet)->dyn_modes[i] = mode; else (codelet)->modes[i] = mode; } while(0)
#define STARPU_TASK_GET_MODE(task, i) \
((task)->cl->nbuffers == STARPU_VARIABLE_NBUFFERS || (task)->dyn_modes ? \
(((task)->dyn_modes) ? (task)->dyn_modes[i] : (task)->modes[i]) : \
STARPU_CODELET_GET_MODE((task)->cl, i) )
#define STARPU_TASK_SET_MODE(task, mode, i) \
do { \
if ((task)->cl->nbuffers == STARPU_VARIABLE_NBUFFERS || (task)->cl->nbuffers > STARPU_NMAXBUFS) \
if ((task)->dyn_modes) (task)->dyn_modes[i] = mode; else (task)->modes[i] = mode; \
else \
STARPU_CODELET_SET_MODE((task)->cl, mode, i); \
} while(0)
#define STARPU_CODELET_GET_NODE(codelet, i) (((codelet)->dyn_nodes) ? (codelet)->dyn_nodes[i] : (codelet)->nodes[i])
#define STARPU_CODELET_SET_NODE(codelet, __node, i) \
do { if ((codelet)->dyn_nodes) (codelet)->dyn_nodes[i] = __node; else (codelet)->nodes[i] = __node; } while(0)
void starpu_task_init(struct starpu_task *task);
void starpu_task_clean(struct starpu_task *task);
struct starpu_task *starpu_task_create(void) STARPU_ATTRIBUTE_MALLOC;
void starpu_task_destroy(struct starpu_task *task);
int starpu_task_submit(struct starpu_task *task) STARPU_WARN_UNUSED_RESULT;
int starpu_task_submit_to_ctx(struct starpu_task *task, unsigned sched_ctx_id);
int starpu_task_finished(struct starpu_task *task) STARPU_WARN_UNUSED_RESULT;
int starpu_task_wait(struct starpu_task *task) STARPU_WARN_UNUSED_RESULT;
int starpu_task_wait_array(struct starpu_task **tasks, unsigned nb_tasks) STARPU_WARN_UNUSED_RESULT;
int starpu_task_wait_for_all(void);
int starpu_task_wait_for_n_submitted(unsigned n);
int starpu_task_wait_for_all_in_ctx(unsigned sched_ctx_id);
int starpu_task_wait_for_n_submitted_in_ctx(unsigned sched_ctx_id, unsigned n);
int starpu_task_wait_for_no_ready(void);
int starpu_task_nready(void);
int starpu_task_nsubmitted(void);
void starpu_iteration_push(unsigned long iteration);
void starpu_iteration_pop(void);
void starpu_do_schedule(void);
void starpu_codelet_init(struct starpu_codelet *cl);
void starpu_codelet_display_stats(struct starpu_codelet *cl);
struct starpu_task *starpu_task_get_current(void);
int starpu_task_get_current_data_node(unsigned i);
const char *starpu_task_get_model_name(struct starpu_task *task);
const char *starpu_task_get_name(struct starpu_task *task);
struct starpu_task *starpu_task_dup(struct starpu_task *task);
void starpu_task_set_implementation(struct starpu_task *task, unsigned impl);
unsigned starpu_task_get_implementation(struct starpu_task *task);
void starpu_create_sync_task(starpu_tag_t sync_tag, unsigned ndeps, starpu_tag_t *deps, void (*callback)(void *), void *callback_arg);
void starpu_create_callback_task(void (*callback)(void *), void *callback_arg);
void starpu_task_watchdog_set_hook(void (*hook)(void *), void *hook_arg);
#ifdef __cplusplus
}
#endif
#endif /* __STARPU_TASK_H__ */
starpu_task::bundle
starpu_task_bundle_t bundle
Definition starpu_task.h:1128
starpu_codelet::mpi_ms_funcs
starpu_mpi_ms_func_t mpi_ms_funcs[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:401
starpu_codelet::specific_nodes
unsigned specific_nodes
Definition starpu_task.h:460
starpu_task::callback_func
void(* callback_func)(void *)
Definition starpu_task.h:744
starpu_codelet::max_parallelism
int max_parallelism
Definition starpu_task.h:288
starpu_task::sched_ctx
unsigned sched_ctx
Definition starpu_task.h:1106
starpu_task::nb_termination_call_required
unsigned nb_termination_call_required
Definition starpu_task.h:1204
starpu_task::synchronous
unsigned synchronous
Definition starpu_task.h:907
starpu_codelet::checked
int checked
Definition starpu_task.h:545
starpu_codelet::nbuffers
int nbuffers
Definition starpu_task.h:425
starpu_task::cl_arg
void * cl_arg
Definition starpu_task.h:709
starpu_codelet::opencl_func
starpu_opencl_func_t opencl_func
Definition starpu_task.h:309
starpu_task::predicted_transfer
double predicted_transfer
Definition starpu_task.h:1168
starpu_codelet::model
struct starpu_perfmodel * model
Definition starpu_task.h:490
starpu_codelet::per_worker_stats
unsigned long per_worker_stats[STARPU_NMAXWORKERS]
Definition starpu_task.h:509
starpu_codelet::can_execute
int(* can_execute)(unsigned workerid, struct starpu_task *task, unsigned nimpl)
Definition starpu_task.h:272
starpu_codelet::opencl_flags
char opencl_flags[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:369
starpu_task::use_tag
unsigned use_tag
Definition starpu_task.h:884
starpu_task::callback_arg_free
unsigned callback_arg_free
Definition starpu_task.h:845
starpu_codelet::cuda_func
starpu_cuda_func_t cuda_func
Definition starpu_task.h:302
starpu_task::cl_arg_free
unsigned cl_arg_free
Definition starpu_task.h:832
starpu_task::destroy
unsigned destroy
Definition starpu_task.h:945
starpu_codelet::dyn_nodes
int * dyn_nodes
Definition starpu_task.h:482
starpu_task::modes
enum starpu_data_access_mode modes[STARPU_NMAXBUFS]
Definition starpu_task.h:683
starpu_codelet::mic_funcs
starpu_mic_func_t mic_funcs[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:385
starpu_task::prologue_callback_arg
void * prologue_callback_arg
Definition starpu_task.h:783
starpu_task::hypervisor_tag
int hypervisor_tag
Definition starpu_task.h:1114
starpu_task::where
int32_t where
Definition starpu_task.h:593
starpu_codelet::where
uint32_t where
Definition starpu_task.h:265
starpu_codelet::callback_func
void(* callback_func)(void *)
Definition starpu_task.h:535
starpu_task::execute_on_a_specific_worker
unsigned execute_on_a_specific_worker
Definition starpu_task.h:917
starpu_task::dyn_handles
starpu_data_handle_t * dyn_handles
Definition starpu_task.h:622
starpu_codelet::cpu_funcs
starpu_cpu_func_t cpu_funcs[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:326
starpu_task::starpu_private
void * starpu_private
Definition starpu_task.h:1189
starpu_task::type
unsigned type
Definition starpu_task.h:1090
starpu_task::prologue_callback_arg_free
unsigned prologue_callback_arg_free
Definition starpu_task.h:858
starpu_codelet::modes
enum starpu_data_access_mode modes[STARPU_NMAXBUFS]
Definition starpu_task.h:436
starpu_task::workerid
unsigned workerid
Definition starpu_task.h:999
starpu_task::mf_skip
unsigned char mf_skip
Definition starpu_task.h:972
starpu_task::workerorder
unsigned workerorder
Definition starpu_task.h:1015
starpu_task::status
enum starpu_task_status status
Definition starpu_task.h:1070
starpu_codelet::opencl_funcs
starpu_opencl_func_t opencl_funcs[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:362
starpu_task::workerids_len
unsigned workerids_len
Definition starpu_task.h:1040
starpu_task::profiling_info
struct starpu_profiling_task_info * profiling_info
Definition starpu_task.h:1137
starpu_task::name
const char * name
Definition starpu_task.h:575
starpu_task::flops
double flops
Definition starpu_task.h:1151
starpu_task::tag_id
starpu_tag_t tag_id
Definition starpu_task.h:817
starpu_task::prologue_callback_pop_arg
void * prologue_callback_pop_arg
Definition starpu_task.h:807
starpu_task::dyn_interfaces
void ** dyn_interfaces
Definition starpu_task.h:630
starpu_task::possibly_parallel
unsigned possibly_parallel
Definition starpu_task.h:1122
starpu_task::predicted
double predicted
Definition starpu_task.h:1159
starpu_task::handles_sequential_consistency
unsigned char * handles_sequential_consistency
Definition starpu_task.h:693
starpu_task::prefetched
unsigned char prefetched
Definition starpu_task.h:986
starpu_task::detach
unsigned detach
Definition starpu_task.h:928
starpu_task::priority
int priority
Definition starpu_task.h:1063
starpu_task::scheduled
unsigned char scheduled
Definition starpu_task.h:979
starpu_codelet::dyn_modes
enum starpu_data_access_mode * dyn_modes
Definition starpu_task.h:449
starpu_task::callback_arg
void * callback_arg
Definition starpu_task.h:757
starpu_codelet::cuda_funcs
starpu_cuda_func_t cuda_funcs[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:341
starpu_task::nbuffers
int nbuffers
Definition starpu_task.h:602
starpu_codelet::cuda_flags
char cuda_flags[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:348
starpu_task::omp_task
struct starpu_omp_task * omp_task
Definition starpu_task.h:1196
starpu_data_descr::mode
enum starpu_data_access_mode mode
Definition starpu_task.h:554
starpu_codelet::nodes
int nodes[STARPU_NMAXBUFS]
Definition starpu_task.h:469
starpu_task::color
unsigned color
Definition starpu_task.h:1098
starpu_codelet::cpu_funcs_name
const char * cpu_funcs_name[STARPU_MAXIMPLEMENTATIONS]
Definition starpu_task.h:410
starpu_task::cl
struct starpu_codelet * cl
Definition starpu_task.h:584
starpu_task::magic
int magic
Definition starpu_task.h:1079
starpu_data_descr::handle
starpu_data_handle_t handle
Definition starpu_task.h:553
starpu_task::workerids
uint32_t * workerids
Definition starpu_task.h:1029
starpu_codelet::flags
int flags
Definition starpu_task.h:540
starpu_task::prologue_callback_pop_func
void(* prologue_callback_pop_func)(void *)
Definition starpu_task.h:797
starpu_codelet::cpu_func
starpu_cpu_func_t cpu_func
Definition starpu_task.h:295
starpu_codelet::color
unsigned color
Definition starpu_task.h:521
starpu_task::cl_arg_size
size_t cl_arg_size
Definition starpu_task.h:726
starpu_task::sched_data
void * sched_data
Definition starpu_task.h:1213
starpu_codelet::name
const char * name
Definition starpu_task.h:515
starpu_task::prev
struct starpu_task * prev
Definition starpu_task.h:1176
starpu_task::next
struct starpu_task * next
Definition starpu_task.h:1183
starpu_task::prologue_callback_func
void(* prologue_callback_func)(void *)
Definition starpu_task.h:772
starpu_task::dyn_modes
enum starpu_data_access_mode * dyn_modes
Definition starpu_task.h:647
starpu_task::sequential_consistency
unsigned sequential_consistency
Definition starpu_task.h:896
starpu_task::prologue_callback_pop_arg_free
unsigned prologue_callback_pop_arg_free
Definition starpu_task.h:872
starpu_task::regenerate
unsigned regenerate
Definition starpu_task.h:956
starpu_task::handles
starpu_data_handle_t handles[STARPU_NMAXBUFS]
Definition starpu_task.h:661
starpu_codelet::type
enum starpu_codelet_type type
Definition starpu_task.h:281
starpu_task::no_submitorder
unsigned no_submitorder
Definition starpu_task.h:965
starpu_codelet::energy_model
struct starpu_perfmodel * energy_model
Definition starpu_task.h:500
starpu_task::interfaces
void * interfaces[STARPU_NMAXBUFS]
Definition starpu_task.h:668
starpu_task_status
starpu_task_status
Definition starpu_task.h:146
starpu_cuda_func_t
void(* starpu_cuda_func_t)(void **, void *)
Definition starpu_task.h:169
starpu_codelet_display_stats
void starpu_codelet_display_stats(struct starpu_codelet *cl)
starpu_task_nready
int starpu_task_nready(void)
starpu_cpu_func_t
void(* starpu_cpu_func_t)(void **, void *)
Definition starpu_task.h:164
starpu_mpi_ms_kernel_t
void(* starpu_mpi_ms_kernel_t)(void **, void *)
Definition starpu_task.h:189
starpu_task_submit_to_ctx
int starpu_task_submit_to_ctx(struct starpu_task *task, unsigned sched_ctx_id)
starpu_mpi_ms_func_t
starpu_mpi_ms_kernel_t(* starpu_mpi_ms_func_t)(void)
Definition starpu_task.h:194
starpu_codelet_init
void starpu_codelet_init(struct starpu_codelet *cl)
starpu_task_create
struct starpu_task * starpu_task_create(void) STARPU_ATTRIBUTE_MALLOC
starpu_task_wait_for_no_ready
int starpu_task_wait_for_no_ready(void)
starpu_mic_func_t
starpu_mic_kernel_t(* starpu_mic_func_t)(void)
Definition starpu_task.h:184
starpu_opencl_func_t
void(* starpu_opencl_func_t)(void **, void *)
Definition starpu_task.h:174
starpu_task_wait_for_n_submitted
int starpu_task_wait_for_n_submitted(unsigned n)
starpu_task_get_name
const char * starpu_task_get_name(struct starpu_task *task)
starpu_task_get_model_name
const char * starpu_task_get_model_name(struct starpu_task *task)
starpu_iteration_pop
void starpu_iteration_pop(void)
starpu_create_sync_task
void starpu_create_sync_task(starpu_tag_t sync_tag, unsigned ndeps, starpu_tag_t *deps, void(*callback)(void *), void *callback_arg)
starpu_task_get_current_data_node
int starpu_task_get_current_data_node(unsigned i)
starpu_task_destroy
void starpu_task_destroy(struct starpu_task *task)
starpu_mic_kernel_t
void(* starpu_mic_kernel_t)(void **, void *)
Definition starpu_task.h:179
starpu_task_watchdog_set_hook
void starpu_task_watchdog_set_hook(void(*hook)(void *), void *hook_arg)
starpu_create_callback_task
void starpu_create_callback_task(void(*callback)(void *), void *callback_arg)
starpu_task_submit
int starpu_task_submit(struct starpu_task *task) STARPU_WARN_UNUSED_RESULT
starpu_task_wait_array
int starpu_task_wait_array(struct starpu_task **tasks, unsigned nb_tasks) STARPU_WARN_UNUSED_RESULT
starpu_task_set_implementation
void starpu_task_set_implementation(struct starpu_task *task, unsigned impl)
starpu_task_get_implementation
unsigned starpu_task_get_implementation(struct starpu_task *task)
starpu_task_get_current
struct starpu_task * starpu_task_get_current(void)
starpu_task_wait_for_n_submitted_in_ctx
int starpu_task_wait_for_n_submitted_in_ctx(unsigned sched_ctx_id, unsigned n)
starpu_codelet_type
starpu_codelet_type
Definition starpu_task.h:127
starpu_task_wait_for_all
int starpu_task_wait_for_all(void)
starpu_iteration_push
void starpu_iteration_push(unsigned long iteration)
starpu_task_wait
int starpu_task_wait(struct starpu_task *task) STARPU_WARN_UNUSED_RESULT
STARPU_NMAXBUFS
#define STARPU_NMAXBUFS
Definition starpu_config.h:194
starpu_task_init
void starpu_task_init(struct starpu_task *task)
starpu_task_nsubmitted
int starpu_task_nsubmitted(void)
starpu_task_clean
void starpu_task_clean(struct starpu_task *task)
starpu_task_wait_for_all_in_ctx
int starpu_task_wait_for_all_in_ctx(unsigned sched_ctx_id)
starpu_task_dup
struct starpu_task * starpu_task_dup(struct starpu_task *task)
STARPU_TASK_BLOCKED_ON_DATA
@ STARPU_TASK_BLOCKED_ON_DATA
Definition starpu_task.h:157
STARPU_TASK_READY
@ STARPU_TASK_READY
Definition starpu_task.h:152
STARPU_TASK_BLOCKED_ON_TAG
@ STARPU_TASK_BLOCKED_ON_TAG
Definition starpu_task.h:155
STARPU_TASK_STOPPED
@ STARPU_TASK_STOPPED
Definition starpu_task.h:158
STARPU_TASK_BLOCKED_ON_TASK
@ STARPU_TASK_BLOCKED_ON_TASK
Definition starpu_task.h:156
STARPU_TASK_RUNNING
@ STARPU_TASK_RUNNING
Definition starpu_task.h:153
STARPU_TASK_BLOCKED
@ STARPU_TASK_BLOCKED
Definition starpu_task.h:150
STARPU_TASK_FINISHED
@ STARPU_TASK_FINISHED
Definition starpu_task.h:154
STARPU_FORKJOIN
@ STARPU_FORKJOIN
Definition starpu_task.h:137
STARPU_SPMD
@ STARPU_SPMD
Definition starpu_task.h:131
STARPU_SEQ
@ STARPU_SEQ
Definition starpu_task.h:128
starpu_codelet
Definition starpu_task.h:250
starpu_data_descr
Definition starpu_task.h:552
starpu_task
Definition starpu_task.h:567
starpu_data_access_mode
starpu_data_access_mode
Definition starpu_data.h:55
starpu_data_handle_t
struct _starpu_data_state * starpu_data_handle_t
Definition starpu_data.h:44
starpu_tag_t
uint64_t starpu_tag_t
Definition starpu_task_dep.h:127
starpu_perfmodel
Definition starpu_perfmodel.h:189
starpu_profiling_task_info
Definition starpu_profiling.h:49
STARPU_MAXIMPLEMENTATIONS
#define STARPU_MAXIMPLEMENTATIONS
Definition starpu_config.h:252
starpu_task_bundle_t
struct _starpu_task_bundle * starpu_task_bundle_t
Definition starpu_task_bundle.h:40
STARPU_ATTRIBUTE_MALLOC
#define STARPU_ATTRIBUTE_MALLOC
Definition starpu_util.h:112
STARPU_NMAXWORKERS
#define STARPU_NMAXWORKERS
Definition starpu_config.h:236
starpu.h