StarPU Internal Handbook

driver_mic_sink.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#ifndef __DRIVER_MIC_SINK_H__
19#define __DRIVER_MIC_SINK_H__
20
23#include <common/config.h>
24
25#ifdef STARPU_USE_MIC
26
27#include <scif.h>
28
29#include <drivers/mp_common/mp_common.h>
30#include <drivers/mp_common/sink_common.h>
31
32
33#define STARPU_MIC_SINK_REPORT_ERROR(status) \
34 _starpu_mic_sink_report_error(__starpu_func__, __FILE__, __LINE__, status)
35
36
37 void _starpu_mic_sink_report_error(const char *func, const char *file, const int line, const int status);
38
39 void _starpu_mic_sink_init(struct _starpu_mp_node *node);
40 void _starpu_mic_sink_launch_workers(struct _starpu_mp_node *node);
41 void _starpu_mic_sink_deinit(struct _starpu_mp_node *node);
42
43 void _starpu_mic_sink_allocate(const struct _starpu_mp_node *mp_node, void *arg, int arg_size);
44 void _starpu_mic_sink_free(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, void *arg, int arg_size);
45 void _starpu_mic_sink_bind_thread(const struct _starpu_mp_node *mp_node STARPU_ATTRIBUTE_UNUSED, int coreid, int * core_table, int nb_core);
46
47void (*_starpu_mic_sink_lookup (const struct _starpu_mp_node * node STARPU_ATTRIBUTE_UNUSED,
48 char* func_name))(void);
49
50#endif /* STARPU_USE_MIC */
51
52
53#endif /* __DRIVER_MIC_SINK_H__ */
mp_common.h
sink_common.h