-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
99 lines (90 loc) · 7.42 KB
/
SConscript
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
import platform
import sys
# Get the current platform.
SYSTEM = platform.uname()[0]
Import('env')
# Library files needed for VC Solver
libfiles = [
'lib/tools/mis_log.cpp',
'lib/mis/ils/ils.cpp',
'lib/mis/ils/local_search.cpp',
'lib/mis/initial_mis/greedy_mis.cpp',
'lib/mis/initial_mis/greedy_vertex.cpp',
'lib/mis/initial_mis/random_mis.cpp',
'lib/mis/initial_mis/initial_mis.cpp',
'lib/data_structure/mis_permutation.cpp',
'lib/data_structure/candidate_list.cpp',
'lib/data_structure/operation_log.cpp',
'lib/data_structure/priority_queues/bucket_array.cpp',
'lib/mis/exact_mis.cpp',
'lib/mis/kernel/branch_and_reduce_algorithm.cpp',
'lib/mis/kernel/modified.cpp',
'lib/mis/evolutionary/population_mis.cpp',
]
libkahip_files = [ 'extern/KaHIP//lib/data_structure/graph_hierarchy.cpp',
'extern/KaHIP//lib/algorithms/strongly_connected_components.cpp',
'extern/KaHIP//lib/algorithms/topological_sort.cpp',
'extern/KaHIP//lib/algorithms/push_relabel.cpp',
'extern/KaHIP//lib/io/graph_io.cpp',
'extern/KaHIP//lib/tools/quality_metrics.cpp',
'extern/KaHIP//lib/tools/random_functions.cpp',
'extern/KaHIP//lib/tools/graph_extractor.cpp',
'extern/KaHIP//lib/tools/misc.cpp',
'extern/KaHIP//lib/tools/partition_snapshooter.cpp',
'extern/KaHIP//lib/partition/graph_partitioner.cpp',
'extern/KaHIP//lib/partition/w_cycles/wcycle_partitioner.cpp',
'extern/KaHIP//lib/partition/coarsening/coarsening.cpp',
'extern/KaHIP//lib/partition/coarsening/contraction.cpp',
'extern/KaHIP//lib/partition/coarsening/edge_rating/edge_ratings.cpp',
'extern/KaHIP//lib/partition/coarsening/clustering/node_ordering.cpp',
'extern/KaHIP//lib/partition/coarsening/clustering/size_constraint_label_propagation.cpp',
'extern/KaHIP//lib/partition/coarsening/matching/matching.cpp',
'extern/KaHIP//lib/partition/coarsening/matching/random_matching.cpp',
'extern/KaHIP//lib/partition/coarsening/matching/gpa/path.cpp',
'extern/KaHIP//lib/partition/coarsening/matching/gpa/gpa_matching.cpp',
'extern/KaHIP//lib/partition/coarsening/matching/gpa/path_set.cpp',
'extern/KaHIP//lib/partition/initial_partitioning/initial_partitioning.cpp',
'extern/KaHIP//lib/partition/initial_partitioning/initial_partitioner.cpp',
'extern/KaHIP//lib/partition/initial_partitioning/initial_partition_bipartition.cpp',
'extern/KaHIP//lib/partition/initial_partitioning/initial_refinement/initial_refinement.cpp',
'extern/KaHIP//lib/partition/initial_partitioning/bipartition.cpp',
'extern/KaHIP//lib/partition/uncoarsening/uncoarsening.cpp',
'extern/KaHIP//lib/partition/uncoarsening/separator/vertex_separator_algorithm.cpp',
'extern/KaHIP//lib/partition/uncoarsening/separator/vertex_separator_flow_solver.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/greedy_neg_cycle.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/problem_factory.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/augmented_Qgraph.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/mixed_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/2way_fm_refinement/two_way_fm.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/flow_refinement/two_way_flow_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/flow_refinement/boundary_bfs.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/flow_refinement/most_balanced_minimum_cuts/most_balanced_minimum_cuts.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/flow_refinement/flow_solving_kernel/cut_flow_problem_solver.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/quotient_graph_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/complete_boundary.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/partial_boundary.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/quotient_graph_scheduling/quotient_graph_scheduling.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/quotient_graph_scheduling/simple_quotient_graph_scheduler.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/quotient_graph_refinement/quotient_graph_scheduling/active_block_quotient_graph_scheduler.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/kway_graph_refinement/kway_graph_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/kway_graph_refinement/kway_graph_refinement_core.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/label_propagation_refinement/label_propagation_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/kway_graph_refinement/kway_graph_refinement_commons.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/augmented_Qgraph_fabric.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/advanced_models.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/kway_graph_refinement/multitry_kway_fm.cpp',
'extern/KaHIP//lib/algorithms/cycle_search.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/cycle_improvements/cycle_refinement.cpp',
'extern/KaHIP//lib/partition/uncoarsening/refinement/tabu_search/tabu_search.cpp',
'extern/KaHIP/interface/kaHIP_interface.cpp'
]
if SYSTEM == 'Darwin':
env['CXX'] = 'g++-4.8'
libkahip = env.Library('libkahip', libkahip_files)
# if env['program'] == 'vc_solver':
# env.Program('vc_solver', ['app/vc_solver.cpp']+libfiles, LIBS=[libkahip, 'libargtable2', 'gomp'])
if env['program'] == 'vc_solver':
env.Program('vc_solver', ['app/vc_solver.cpp']+libfiles, LIBS=[libkahip, 'libargtable2','gcov'], LINKFLAGS="--static")
# if env['program'] == 'vc_solver':
# env.Program('vc_solver', ['app/vc_solver.cpp']+libfiles, LIBS=[libkahip, 'libargtable2'], LINKFLAGS="-fsanitize=address")