summaryrefslogtreecommitdiff
path: root/benchmarks/CUDA/DG/3rdParty/ParMetis-3.1/ParMETISLib/defs.h
blob: 3d47f1d89f076e0832670b9de91028709ddb01a4 (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
 * Copyright 1997, Regents of the University of Minnesota
 *
 * defs.h
 *
 * This file contains constant definitions
 *
 * Started 8/27/94
 * George
 *
 * $Id: defs.h,v 1.4 2003/07/22 20:29:05 karypis Exp $
 *
 */


#define GLOBAL_DBGLVL			0
#define GLOBAL_SEED			15

#define MC_FLOW_BALANCE_THRESHOLD       0.2
#define MOC_GD_GRANULARITY_FACTOR       1.0
#define RIP_SPLIT_FACTOR                8
#define MAX_NPARTS_MULTIPLIER		20

#define STATIC_PARTITION        1
#define ADAPTIVE_PARTITION      2
#define REFINE_PARTITION        3
#define MESH_PARTITION		4

#define REDIST_WGT              2.0
#define MAXNVWGT_FACTOR         2.0

#define MAXNCON                 12
#define MAXNOBJ                 12
#define N_MOC_REDO_PASSES       10
#define N_MOC_GR_PASSES         8
#define NREMAP_PASSES           8
#define N_MOC_GD_PASSES         6
#define N_MOC_BAL_PASSES        4
#define NMATCH_PASSES           4

#define COUPLED			1
#define DISCOUPLED		2

#define MAX_NCON_FOR_DIFFUSION  2
#define SMALLGRAPH              10000

#define LTERM                   (void **) 0     /* List terminator for GKfree() */

#define NGD_PASSES		20

#define OPTION_IPART		1
#define OPTION_FOLDF		2
#define OPTION_DBGLVL		3

#define PMV3_OPTION_DBGLVL	1
#define PMV3_OPTION_SEED	2
#define PMV3_OPTION_IPART	3
#define PMV3_OPTION_PSR		3

#define XYZ_XCOORD		1
#define XYZ_SPFILL		2

/* Type of initial vertex separator algorithms */
#define ISEP_EDGE		1
#define ISEP_NODE		2

#define UNMATCHED		-1
#define MAYBE_MATCHED		-2
#define TOO_HEAVY		-3


#define HTABLE_EMPTY    	-1

#define NGR_PASSES		4	/* Number of greedy refinement passes */
#define NIPARTS			8	/* Number of random initial partitions */
#define NLGR_PASSES		5	/* Number of GR refinement during IPartition */

#define SMALLFLOAT		0.00001
/* #define KEEP_BIT        (idxtype)536870912    */    /* 1<<29 */
#define KEEP_BIT        ((idxtype)(1<<((sizeof(idxtype)*8)-2)))

#define MAX_PES			8192
#define MAX_NPARTS		67108864

#define COARSEN_FRACTION	0.75	/* Node reduction between succesive coarsening levels */
#define COARSEN_FRACTION2	0.55	/* Node reduction between succesive coarsening levels */
#define UNBALANCE_FRACTION		1.05
#define ORDER_UNBALANCE_FRACTION	1.05

#define MAXVWGT_FACTOR		1.4

#define MATCH_LOCAL		1
#define MATCH_GLOBAL		2

/* Debug Levels */
#define DBG_TIME	1		/* Perform timing analysis */
#define DBG_INFO	2		/* Perform timing analysis */
#define DBG_PROGRESS   	4		/* Show the coarsening progress */
#define DBG_REFINEINFO	8		/* Show info on communication during folding */
#define DBG_MATCHINFO	16		/* Show info on matching */
#define DBG_RMOVEINFO	32		/* Show info on communication during folding */
#define DBG_REMAP	64		/* Determines if remapping will take place */