StarPU Handbook
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
starpu_tree.h
Go to the documentation of this file.
1 /* StarPU --- Runtime system for heterogeneous multicore architectures.
2  *
3  * Copyright (C) 2009-2013 Université de Bordeaux
4  * Copyright (C) 2010-2014 Centre National de la Recherche Scientifique
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_TREE_H__
19 #define __STARPU_TREE_H__
20 
21 #ifdef __cplusplus
22 extern "C"
23 {
24 #endif
25 
27 {
28  struct starpu_tree **nodes;
30  int arity;
31  int id;
32  int level;
33  int is_pu;
34 };
35 
36 void starpu_tree_reset_visited(struct starpu_tree *tree, int *visited);
37 
38 void starpu_tree_insert(struct starpu_tree *tree, int id, int level, int is_pu, int arity, struct starpu_tree *father);
39 
40 struct starpu_tree *starpu_tree_get(struct starpu_tree *tree, int id);
41 
42 struct starpu_tree *starpu_tree_get_neighbour(struct starpu_tree *tree, struct starpu_tree *node, int *visited, int *present);
43 
44 void starpu_tree_free(struct starpu_tree *tree);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* __STARPU_TREE_H__ */
struct starpu_tree ** nodes
Definition: starpu_tree.h:28
struct starpu_tree * starpu_tree_get_neighbour(struct starpu_tree *tree, struct starpu_tree *node, int *visited, int *present)
int level
Definition: starpu_tree.h:32
int id
Definition: starpu_tree.h:31
int arity
Definition: starpu_tree.h:30
void starpu_tree_free(struct starpu_tree *tree)
struct starpu_tree * father
Definition: starpu_tree.h:29
Definition: starpu_tree.h:26
int is_pu
Definition: starpu_tree.h:33
void starpu_tree_insert(struct starpu_tree *tree, int id, int level, int is_pu, int arity, struct starpu_tree *father)
void starpu_tree_reset_visited(struct starpu_tree *tree, int *visited)
struct starpu_tree * starpu_tree_get(struct starpu_tree *tree, int id)