-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpulp_data.h
52 lines (40 loc) · 1.09 KB
/
pulp_data.h
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
#ifndef _PULP_DATA_H
#define _PULP_DATA_H
#include "xtrapulp.h"
struct pulp_data_t {
double avg_size;
double avg_edge_size;
double avg_cut_size;
double max_v;
double max_e;
double max_c;
double running_max_v;
double running_max_e;
double running_max_c;
double weight_exponent_e;
double weight_exponent_c;
int32_t num_parts;
int32_t* local_parts;
int64_t cut_size;
int64_t cut_size_change;
int64_t max_cut;
int64_t* part_sizes;
int64_t* part_edge_sizes;
int64_t* part_cut_sizes;
int64_t* part_size_changes;
int64_t* part_edge_size_changes;
int64_t* part_cut_size_changes;
};
struct thread_pulp_t {
double* part_counts;
double* part_weights;
double* part_edge_weights;
double* part_cut_weights;
};
void init_thread_pulp(thread_pulp_t* tp, pulp_data_t* pulp);
void clear_thread_pulp(thread_pulp_t* tp);
void init_pulp_data(dist_graph_t* g, pulp_data_t* pulp, int32_t num_parts);
void update_pulp_data(dist_graph_t* g, pulp_data_t* pulp);
void update_pulp_data_weighted(dist_graph_t* g, pulp_data_t* pulp);
void clear_pulp_data(pulp_data_t* pulp);
#endif