hmpi_partitioning_graphs.h
2.38 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*************************************************************************
* *
* Heterogeneous Data Partitioning Interface *
* ========================================= *
* *
* Copyright (c) 2002 Department of Computer Science, *
* University College Dublin. *
* *
* All rights reserved. We assume no responsibility for the use *
* or reliability of our software. *
* *
*************************************************************************/
/************************************************/
/* Partitioning interfaces for graphs */
/* */
/* Revision history */
/* 19-05-2003 -- Initial version */
/************************************************/
#ifndef __HMPI_PARTITIONING_GRAPHS_HH
#define __HMPI_PARTITIONING_GRAPHS_HH
#define PARTITION_SUBSET 1
#define PARTITION_OTHER 2
int HMPI_Partition_graph(
int p,
int pn,
const double *speeds,
const int *psizes,
const int *mlimits,
int n,
int m,
const int *vwgt,
const int *xadj,
const int *adjacency,
const int *adjwgt,
int *vp,
int *edgecut
);
int HMPI_Partition_bipartite_graph(
int p,
int pn,
const double *speeds,
const int *psizes,
const int *mlimits,
int n,
int m,
const int *vtype,
const int *vwgt,
const int *xadj,
const int *adjacency,
const int *adjwgt,
int type_of_partitioning,
int *vp,
int *edgecut
);
int HMPI_Partition_hypergraph(
int p,
int pn,
const double *speeds,
const int *psizes,
const int *mlimits,
int nv,
int nedges,
const int *vwgt,
const int *hptr,
const int *hind,
const int *hwgt,
int *vp,
int *edgecut
);
#endif /* __HMPI_PARTITIONING_GRAPHS_HH */