Commit 00c8ef1
feat: add profiler_device speedup metric for CUDA benchmarks
Add PyTorch Profiler device time measurement and speedup calculation
for CUDA benchmarks. This provides a more accurate kernel-level
performance comparison between eager and compiled models.
- Add --profiler-device-time CLI argument
- Measure profiler_device via torch.profiler with CUDA activity
- Print [Speedup][profiler_device] in benchmark results
- Propagate flag through multi-model test runners
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8ce68eb commit 00c8ef1
2 files changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
225 | 236 | | |
226 | 237 | | |
227 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
228 | 246 | | |
229 | 247 | | |
230 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
209 | 231 | | |
210 | 232 | | |
211 | 233 | | |
| |||
423 | 445 | | |
424 | 446 | | |
425 | 447 | | |
| 448 | + | |
426 | 449 | | |
427 | 450 | | |
428 | 451 | | |
| |||
472 | 495 | | |
473 | 496 | | |
474 | 497 | | |
| 498 | + | |
475 | 499 | | |
476 | 500 | | |
477 | 501 | | |
| |||
558 | 582 | | |
559 | 583 | | |
560 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
561 | 591 | | |
562 | 592 | | |
0 commit comments