StarPU Handbook
starpu_mpi_lb.h
Go to the documentation of this file.
1
/* StarPU --- Runtime system for heterogeneous multicore architectures.
2
*
3
* Copyright (C) 2016 Inria
4
* Copyright (C) 2017 CNRS
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 __STARPU_MPI_LOAD_BALANCER_H__
19
#define __STARPU_MPI_LOAD_BALANCER_H__
20
21
#include <
starpu.h
>
22
23
#ifdef __cplusplus
24
extern
"C"
25
{
26
#endif
27
28
struct
starpu_mpi_lb_conf
29
{
30
void (*get_neighbors)(
int
**neighbor_ids,
int
*nneighbors);
31
void (*get_data_unit_to_migrate)(
starpu_data_handle_t
**handle_unit,
int
*nhandles,
int
dst_node);
32
};
33
34
/* Inits the load balancer's environment with the load policy provided by the
35
* user
36
*/
37
void
starpu_mpi_lb_init(
const
char
*lb_policy_name,
struct
starpu_mpi_lb_conf
*);
38
void
starpu_mpi_lb_shutdown();
39
40
#ifdef __cplusplus
41
}
42
#endif
43
44
#endif // __STARPU_MPI_LOAD_BALANCER_H__
starpu_mpi_lb_conf
Definition:
starpu_mpi_lb.h:28
starpu_data_handle_t
struct _starpu_data_state * starpu_data_handle_t
Definition:
starpu_data.h:46
starpu.h
mpi
include
starpu_mpi_lb.h
Generated on Tue Mar 24 2020 14:11:11 for StarPU Handbook by
1.8.17