File: tm_tree.h

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (39 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef __TM_TREE_H__
#define __TM_TREE_H__
#include <stdlib.h>
#include "treematch.h"

OMPI_HIDDEN void tm_update_val(tm_affinity_mat_t *aff_mat,tm_tree_t *parent);
OMPI_HIDDEN void tm_display_tab(double **tab,int N);
OMPI_HIDDEN void tm_set_node(tm_tree_t *node,tm_tree_t ** child, int arity,tm_tree_t *parent,
	      int id,double val,tm_tree_t *tab_child,int depth);


typedef struct _group_list_t{
  struct _group_list_t *next;
  tm_tree_t **tab;
  double val;
  double sum_neighbour;
  double wg;
  int id;
  double *bound;
}group_list_t;


typedef struct{
  int i;
  int j;
  double val;
}adjacency_t;


typedef struct _work_unit_t{
  int nb_groups;
  int *tab_group;
  int done;
  int nb_work;
  struct _work_unit_t *next;
}work_unit_t;

#endif