Commit 0d2ffdb
Merge substitution-builder (flexflow#1575)
* Start on pcg builder
* Add tests and some implementation for pcg builder
* Add pcg tests, make dtgen constructors explicit to fix bug
* Add remainder of PCG tests
* Fix build issues in local-execution
* Format
* Address Reyna comments, add topological_order function for PCG
* Pre multidigraph refactor
* Removing visitable from sp code
* Add open dataflow graph, start to replace pcg dataflow graph
* Start refactoring substitutions
* Add utility functions to support pattern matching
* Pre-refactor inputs
* Fix proj url
* Get back to substitutions, now with unordered graph inputs
* Get substitutions building
* substitutions-tests now builds
* Fix bug in filter, pass some initial substitution tests
* Add tests for fmt::to_string, fix some substitutions bugs
* Pass initial unit tests for find_pattern_matches
* Start on unit tests for pcg pattern
* Pass initial test for find_pattern_matches
* Fix small build issue in tests
* Format
* Sync tests in CI with tests in proj
* Fix minor build errors in kernels and local-execution
* Format
* Remove outdated code
* More outdated code removal
* More cleanup, add test for sp decomposition
* Pull apart containers.h
* More sp testing and fixes
* Break up graph algorithms.h
* Pre- full SP algo commit
* Add initial implementation and tests for cbc decomposition and inverse line graph
* Pass test for get_inverse_line_graph
* Add new multidigraph
* Fix get_inverse_line_graph to return a MultiDiGraph instead of a DiGraph
* Add tests for parallel and series reduction finding
* Add really rough implementation of valdez sp decomposition
* Fix local-execution build
* Add implementations and tests for applying series/parallel reductions
* Format
* Clean up sp decomposition interface and tests
* Format
* Add comments for top-level substitutions functions, add proj doxygen support
* Start sketching out substitutions code
* Fix build errors
* Add ability to permute node ids
* Cleanup and start to test new substitutions code
* Add test case for evaluate_substitution_output
* Add naive isomorphism detection code
* Add graph inputs to open dataflow graph isomorphism
* Add input permutation to evaluate_substitution_output
* Fix permute_node_ids
* Add test for permute_input_ids
* Migrate over to mutable implementation of apply_substitution
* Add fast isomorphism checking and an initial implementation of full substitution logic
* Pass initial full substitutions test
* Cleanup old isomorphism checking code
* Fix post-merge bugs
* Fix broken pcg builder test
* Format
* Reorganize code and remove some outdated code pre-code-review
* Format
* Restarting work on this after working on export-model-arch
* Adding in some a simple function to get the currently available substritutions
* nonnegative_int additions, code cleanup, etc.
* A bunch more moving over to nonnegative_int
* Even more nonnegative_int updating
* Fix build
* Fix failing tests
* Format
* Format
---------
Co-authored-by: Colin Unger <[email protected]>
Co-authored-by: Victor Li <[email protected]>1 parent 209db7e commit 0d2ffdb
File tree
423 files changed
+7336
-5040
lines changed- bin/export-model-arch/src
- cmake
- lib
- compiler
- include/compiler/series_parallel/computation_graph
- src/compiler
- machine_mapping
- series_parallel/computation_graph
- test/src
- compiler
- machine_mapping
- abstracted_tensor_set_movement
- machine_mapping_problem_tree
- memory_optimization
- series_parallel/computation_graph
- task_graph_simulator
- kernels
- include/kernels
- src
- cuda
- ops
- test/src
- local-execution
- include/local-execution
- src
- ops
- test/src
- models
- include/models
- bert
- candle_uno
- inception_v3
- split_test
- transformer
- src/models
- bert
- candle_uno
- inception_v3
- split_test
- transformer
- op-attrs
- include/op-attrs
- dim_ordered
- ops
- attention
- conv_2d
- parallel_tensor_shape
- src/op-attrs
- ops
- attention
- conv_2d
- test/src/op-attrs
- ops
- pcg
- include/pcg
- file_format/v1
- graphs
- v1_binary_sp_decomposition
- parallel_computation_graph
- src/pcg
- file_format/v1
- graphs
- v1_binary_sp_decomposition
- parallel_computation_graph
- test/src/pcg
- file_format/v1
- v1_binary_sp_decomposition
- parallel_computation_graph
- substitutions
- include/substitutions
- apply_substitution
- operator_pattern
- output_graph
- tensor_pattern
- unlabelled
- src/substitutions
- apply_substitution
- operator_pattern
- output_graph
- tensor_pattern
- unlabelled
- test/src
- substitutions
- apply_substitution
- operator_pattern
- unlabelled
- utils
- include/utils
- bidict/algorithms
- cli
- containers
- graph
- dataflow_graph
- algorithms
- instances
- labelled_open_dataflow_graph/algorithms
- multidigraph/algorithms
- open_dataflow_graph
- algorithms
- nonnegative_int
- src/utils
- bidict/algorithms
- cli
- containers
- graph
- dataflow_graph
- algorithms
- digraph/algorithms
- instances
- multidigraph/algorithms
- open_dataflow_graph
- algorithms
- nonnegative_int
- test/src
- utils
- bidict/algorithms
- cli
- containers
- graph
- dataflow_graph
- algorithms
- transitive_reduced_dataflow_graph
- multidigraph/algorithms
- open_dataflow_graph/algorithms
- series_parallel
- nonnegative_int
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
423 files changed
+7336
-5040
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
104 | | - | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
43 | 55 | | |
44 | 56 | | |
45 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| 130 | + | |
| 131 | + | |
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
| |||
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| 146 | + | |
| 147 | + | |
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
55 | 61 | | |
56 | 62 | | |
57 | | - | |
58 | | - | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | | - | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
64 | | - | |
65 | | - | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 | | |
69 | 77 | | |
70 | 78 | | |
| |||
75 | 83 | | |
76 | 84 | | |
77 | 85 | | |
78 | | - | |
79 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| |||
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | | - | |
95 | | - | |
| 103 | + | |
| 104 | + | |
96 | 105 | | |
97 | 106 | | |
98 | 107 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 2 | | |
8 | | - | |
9 | 3 | | |
10 | | - | |
11 | 4 | | |
12 | 5 | | |
13 | 6 | | |
14 | 7 | | |
15 | 8 | | |
16 | 9 | | |
17 | | - | |
| 10 | + | |
| 11 | + | |
18 | 12 | | |
19 | 13 | | |
20 | 14 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
0 commit comments