StarPU Internal Handbook
data_movements_interface.h
Go to the documentation of this file.
1/* StarPU --- Runtime system for heterogeneous multicore architectures.
2 *
3 * Copyright (C) 2016-2021 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#include <starpu.h>
18
21#ifndef __DATA_MOVEMENTS_INTERFACE_H
22#define __DATA_MOVEMENTS_INTERFACE_H
23
26{
28 starpu_mpi_tag_t *tags;
30 int *ranks;
32 int size;
33};
34
35void data_movements_data_register(starpu_data_handle_t *handle, unsigned home_node, int *ranks, starpu_mpi_tag_t *tags, int size);
36
37starpu_mpi_tag_t **data_movements_get_ref_tags_table(starpu_data_handle_t handle);
38int **data_movements_get_ref_ranks_table(starpu_data_handle_t handle);
39int data_movements_reallocate_tables(starpu_data_handle_t handle, unsigned node, int size);
40
41starpu_mpi_tag_t *data_movements_get_tags_table(starpu_data_handle_t handle);
42int *data_movements_get_ranks_table(starpu_data_handle_t handle);
43int data_movements_get_size_tables(starpu_data_handle_t handle);
44
45#define DATA_MOVEMENTS_GET_SIZE_TABLES(interface) (((struct data_movements_interface *)(interface))->size)
46#define DATA_MOVEMENTS_GET_TAGS_TABLE(interface) (((struct data_movements_interface *)(interface))->tags)
47#define DATA_MOVEMENTS_GET_RANKS_TABLE(interface) (((struct data_movements_interface *)(interface))->ranks)
48
49#endif /* __DATA_MOVEMENTS_INTERFACE_H */
int size
Definition: data_movements_interface.h:32
starpu_mpi_tag_t * tags
Definition: data_movements_interface.h:28
int * ranks
Definition: data_movements_interface.h:30
Definition: data_movements_interface.h:26