Commit d9cc213
Stop benchmarking compile time of dead code (#145590)
Summary:
FIXES pytorch/pytorch#144775 frfr
See details on the problem: pytorch/pytorch#144775 (comment)
We fixed some silent incorrectness, but it results in less nodes DCE'd. The benchmark iteration loop had some dead code which could contain side effect ops that aren't safe to DCE. The regression is expected.
This PR removes the compile time benchmarking of the dead code, which should reduce the noise of the benchmark and aligns with the benchmarking used by performance tests
New benchmark results:
```python
dev,name,batch_size,accuracy,calls_captured,unique_graphs,graph_breaks,unique_graph_breaks,autograd_captures,autograd_compiles,cudagraph_skips,compilation_latency
cuda,BartForConditionalGeneration,1,pass,897,1,0,0,0,0,0,39.322364 # after pytorch/pytorch#144319
cuda,BartForConditionalGeneration,1,pass,897,1,0,0,0,0,0,38.972257 # before pytorch/pytorch#144319
```
X-link: pytorch/pytorch#145590
Approved by: https://github.com/jansel
ghstack dependencies: #145447
Reviewed By: ZainRizvi
Differential Revision: D68860252
fbshipit-source-id: 60371bdf3ba6e6f38766d6589690a221f8cebda41 parent 0e370a0 commit d9cc213
2 files changed
+43
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2781 | 2781 | | |
2782 | 2782 | | |
2783 | 2783 | | |
2784 | | - | |
| 2784 | + | |
2785 | 2785 | | |
2786 | 2786 | | |
2787 | | - | |
2788 | | - | |
| 2787 | + | |
| 2788 | + | |
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
| |||
2953 | 2953 | | |
2954 | 2954 | | |
2955 | 2955 | | |
2956 | | - | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2957 | 2959 | | |
2958 | 2960 | | |
2959 | 2961 | | |
| |||
2986 | 2988 | | |
2987 | 2989 | | |
2988 | 2990 | | |
2989 | | - | |
| 2991 | + | |
2990 | 2992 | | |
2991 | 2993 | | |
2992 | 2994 | | |
| |||
3007 | 3009 | | |
3008 | 3010 | | |
3009 | 3011 | | |
3010 | | - | |
| 3012 | + | |
3011 | 3013 | | |
3012 | 3014 | | |
3013 | 3015 | | |
| |||
3066 | 3068 | | |
3067 | 3069 | | |
3068 | 3070 | | |
3069 | | - | |
| 3071 | + | |
3070 | 3072 | | |
3071 | 3073 | | |
3072 | 3074 | | |
3073 | 3075 | | |
3074 | 3076 | | |
3075 | | - | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
3076 | 3080 | | |
3077 | 3081 | | |
3078 | 3082 | | |
| |||
3167 | 3171 | | |
3168 | 3172 | | |
3169 | 3173 | | |
3170 | | - | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
3171 | 3177 | | |
3172 | 3178 | | |
3173 | 3179 | | |
| |||
3176 | 3182 | | |
3177 | 3183 | | |
3178 | 3184 | | |
3179 | | - | |
3180 | | - | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
3181 | 3189 | | |
3182 | 3190 | | |
3183 | 3191 | | |
| |||
4460 | 4468 | | |
4461 | 4469 | | |
4462 | 4470 | | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
4463 | 4481 | | |
4464 | 4482 | | |
4465 | 4483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
221 | 233 | | |
222 | 234 | | |
223 | 235 | | |
| |||
0 commit comments