StarPU Internal Handbook
sink_common.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2012-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4  * Copyright (C) 2013 Thibaut Lambert
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 
19 #ifndef __SINK_COMMON_H__
20 #define __SINK_COMMON_H__
21 
24 #include <common/config.h>
25 
26 #ifdef STARPU_USE_MP
27 
29 
34 struct _starpu_sink_topology
35 {
36  unsigned nb_cpus;
37 };
38 
39 struct arg_sink_thread
40 {
41  struct _starpu_mp_node *node;
42  int coreid;
43 };
44 
45 void _starpu_sink_common_worker(void);
46 
47 void _starpu_sink_common_execute(struct _starpu_mp_node *node, void *arg, int arg_size);
48 
49 void _starpu_sink_common_allocate(const struct _starpu_mp_node *mp_node, void *arg, int arg_size);
50 void _starpu_sink_common_free(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, void *arg, int arg_size);
51 
52 void* _starpu_sink_thread(void * thread_arg);
53 
54 #endif /* STARPU_USE_MP */
55 
56 
57 #endif /* __SINK_COMMON_H__ */