Commit eebb110
committed
Update on "compile time benchmarks for AOTDispatcher (partitioner)"
compile time benchmark for the min cut partitioner. I'm hoping that this is a reasonable benchmark because:
(1) it consists of a single input + many weights that are used sequentially
(2) contains a mix of recompute vs non-recomputed ops (matmul + sin)
(3) it is relatively simple
from running locally:
```
collecting compile time instruction count for aotdispatcher_partitioner_cpu
compile time instruction count for iteration 0 is 21764219181
compile time instruction count for iteration 1 is 12475020009
compile time instruction count for iteration 2 is 12463710140
compile time instruction count for iteration 3 is 12455676489
compile time instruction count for iteration 4 is 12451344330
```
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames rec
[ghstack-poisoned]File tree
229 files changed
+5045
-2411
lines changed- .ci
- docker
- ci_commit_pins
- pytorch
- .github
- ISSUE_TEMPLATE
- scripts
- workflows
- aten/src/ATen
- core
- dispatch
- native
- cuda
- mps/operations
- benchmarks/dynamo
- ci_expected_accuracy
- microbenchmarks
- pr_time_benchmarks
- test_check_result
- c10
- test/util
- util
- caffe2/utils/threadpool
- docs/source/community
- mypy_plugins
- test
- distributed
- _composable
- fsdp
- fully_shard
- _tensor
- elastic/agent/server/test
- fsdp
- tensor/parallel
- dynamo
- expect
- export
- functorch
- inductor
- quantization/core
- third_party
- tools/autograd
- torch
- _decomp
- _dynamo
- variables
- _export
- serde
- _higher_order_ops
- _inductor
- codegen
- aoti_runtime
- rocm
- fx_passes
- kernel
- runtime
- _prims_common
- _prims
- _refs
- _subclasses
- ao
- nn/intrinsic/qat/modules
- quantization
- fx
- csrc
- api
- include/torch/nn
- modules
- src
- nn
- modules
- python
- serialize
- cuda
- distributed
- c10d
- rpc
- dynamo
- inductor
- aoti_runtime
- aoti_torch
- c
- lazy/core
- xpu
- distributed
- _composable/fsdp
- tensor/experimental
- export
- fx
- experimental
- passes
- linalg
- nn/attention
- onnx/_internal/fx
- testing/_internal
- utils
- _sympy
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
229 files changed
+5045
-2411
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
215 | | - | |
| 218 | + | |
216 | 219 | | |
217 | 220 | | |
218 | 221 | | |
| |||
338 | 341 | | |
339 | 342 | | |
340 | 343 | | |
341 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
342 | 348 | | |
343 | 349 | | |
344 | 350 | | |
| |||
348 | 354 | | |
349 | 355 | | |
350 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
351 | 363 | | |
352 | 364 | | |
353 | 365 | | |
| |||
407 | 419 | | |
408 | 420 | | |
409 | 421 | | |
410 | | - | |
411 | | - | |
412 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
413 | 427 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | 428 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
428 | 436 | | |
429 | | - | |
| 437 | + | |
430 | 438 | | |
431 | | - | |
432 | | - | |
433 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
434 | 445 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
439 | 450 | | |
440 | 451 | | |
441 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
66 | 70 | | |
67 | 71 | | |
68 | 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 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
69 | 107 | | |
70 | 108 | | |
71 | 109 | | |
| |||
119 | 157 | | |
120 | 158 | | |
121 | 159 | | |
122 | | - | |
| 160 | + | |
123 | 161 | | |
124 | 162 | | |
125 | 163 | | |
| |||
136 | 174 | | |
137 | 175 | | |
138 | 176 | | |
139 | | - | |
| 177 | + | |
140 | 178 | | |
141 | 179 | | |
142 | 180 | | |
| |||
154 | 192 | | |
155 | 193 | | |
156 | 194 | | |
157 | | - | |
| 195 | + | |
158 | 196 | | |
159 | 197 | | |
160 | 198 | | |
| |||
174 | 212 | | |
175 | 213 | | |
176 | 214 | | |
177 | | - | |
| 215 | + | |
178 | 216 | | |
179 | 217 | | |
180 | 218 | | |
| |||
192 | 230 | | |
193 | 231 | | |
194 | 232 | | |
195 | | - | |
| 233 | + | |
196 | 234 | | |
197 | 235 | | |
198 | 236 | | |
| |||
210 | 248 | | |
211 | 249 | | |
212 | 250 | | |
213 | | - | |
| 251 | + | |
214 | 252 | | |
215 | 253 | | |
216 | 254 | | |
| |||
229 | 267 | | |
230 | 268 | | |
231 | 269 | | |
232 | | - | |
| 270 | + | |
233 | 271 | | |
234 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
235 | 308 | | |
236 | 309 | | |
237 | 310 | | |
0 commit comments