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
30#pragma GCC visibility push(hidden)
31
36struct _starpu_sink_topology
37{
38 unsigned nb_cpus;
39};
40
41struct arg_sink_thread
42{
43 struct _starpu_mp_node *node;
44 int coreid;
45};
46
47void _starpu_sink_common_worker(void);
48
49void (*_starpu_sink_common_cpu_lookup (const struct _starpu_mp_node * node STARPU_ATTRIBUTE_UNUSED, char* func_name))(void);
50void _starpu_sink_common_execute(struct _starpu_mp_node *node, void *arg, int arg_size);
51
52void _starpu_sink_common_allocate(const struct _starpu_mp_node *mp_node, void *arg, int arg_size);
53void _starpu_sink_common_free(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, void *arg, int arg_size);
54
55void _starpu_sink_common_map(const struct _starpu_mp_node *mp_node, void *arg, int arg_size);
56void _starpu_sink_common_unmap(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, void *arg, int arg_size);
57
58void* _starpu_sink_thread(void * thread_arg);
59
60#pragma GCC visibility pop
61
62#endif /* STARPU_USE_MP */
63
64#endif /* __SINK_COMMON_H__ */