StarPU Internal Handbook
Loading...
Searching...
No Matches
driver_mpi_common.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2016-2022 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
4 *
5 * StarPU is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation; either version 2.1 of the License, or (at
8 * your option) any later version.
9 *
10 * StarPU is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 *
14 * See the GNU Lesser General Public License in COPYING.LGPL for more details.
15 */
16
17#ifndef __DRIVER_MPI_COMMON_H__
18#define __DRIVER_MPI_COMMON_H__
19
24
25#pragma GCC visibility push(hidden)
26
27#ifdef STARPU_USE_MPI_MASTER_SLAVE
28
29#define SYNC_TAG 44
30#define ASYNC_TAG 45
31#define NOTIF_TAG 46
32
33extern int _starpu_mpi_common_multiple_thread;
34
35int _starpu_mpi_common_mp_init();
36void _starpu_mpi_common_mp_deinit();
37
38int _starpu_mpi_common_is_src_node();
39int _starpu_mpi_common_get_src_node();
40
41int _starpu_mpi_common_is_mp_initialized();
42int _starpu_mpi_common_recv_is_ready(const struct _starpu_mp_node *mp_node);
43int _starpu_mpi_common_notif_recv_is_ready(const struct _starpu_mp_node *mp_node);
44int _starpu_mpi_common_notif_send_is_ready(const struct _starpu_mp_node *mp_node);
45
46void _starpu_mpi_common_mp_initialize_src_sink(struct _starpu_mp_node *node);
47
48void _starpu_mpi_common_send(const struct _starpu_mp_node *node, void *msg, int len, void * event);
49void _starpu_mpi_common_recv(const struct _starpu_mp_node *node, void *msg, int len, void * event);
50
51void _starpu_mpi_common_mp_send(const struct _starpu_mp_node *node, void *msg, int len);
52void _starpu_mpi_common_mp_recv(const struct _starpu_mp_node *node, void *msg, int len);
53
54void _starpu_mpi_common_nt_send(const struct _starpu_mp_node *node, void *msg, int len);
55void _starpu_mpi_common_nt_recv(const struct _starpu_mp_node *node, void *msg, int len);
56
57void _starpu_mpi_common_recv_from_device(const struct _starpu_mp_node *node, int src_devid, void *msg, int len, void * event);
58void _starpu_mpi_common_send_to_device(const struct _starpu_mp_node *node, int dst_devid, void *msg, int len, void * event);
59
60unsigned int _starpu_mpi_common_test_event(struct _starpu_async_channel * event);
61void _starpu_mpi_common_wait_request_completion(struct _starpu_async_channel * event);
62
63void _starpu_mpi_common_barrier(void);
64
65void _starpu_mpi_common_measure_bandwidth_latency(double bandwidth_dtod[STARPU_MAXMPIDEVS][STARPU_MAXMPIDEVS], double latency_dtod[STARPU_MAXMPIDEVS][STARPU_MAXMPIDEVS]);
66
67#endif /* STARPU_USE_MPI_MASTER_SLAVE */
68
69#pragma GCC visibility pop
70
71#endif /* __DRIVER_MPI_COMMON_H__ */
Definition copy_driver.h:71