Commit 4871b45
Add OOB benchmarking and V2 bounds check mode support to
Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2725
Pull Request resolved: #5797
Add `--oob` flag (0-100) to the `bounds_check_indices` benchmark to set a percentage of indices out of bounds, enabling measurement of the atomic contention overhead in WARNING/IGNORE modes across v1 and v2 kernels.
Add V2 bounds check mode support (`V2_IGNORE=4`, `V2_WARNING=5`, `V2_FATAL=6`) to the benchmark. V2 modes are decomposed into their base mode + `bounds_check_version=2`, mirroring the logic in `SplitTableBatchedEmbeddingBagsCodegen`. The `bounds_check_version` is now passed through to `torch.ops.fbgemm.bounds_check_indices`.
Update `run_bounds_check_benchmark.sh` to accept `--oob` and to loop over multiple `--bounds-check-mode` values (e.g., `"1 2 5 4"` for v1/v2 x WARNING/IGNORE). Trace URLs now include mode and OOB percentage. Add a convenience sweep script for the OOB experiment.
Reviewed By: q10
Differential Revision: D106606582
fbshipit-source-id: 58abe82d6793fbfdda130490563bc7f6d13e9818bounds_check_indices benchmark (#5797)1 parent 6c71acd commit 4871b45
3 files changed
Lines changed: 35 additions & 4 deletions
File tree
- fbgemm_gpu
- bench/tbe
- fbgemm_gpu/tbe
- cache
- ssd
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
302 | 312 | | |
303 | 313 | | |
304 | 314 | | |
| |||
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
| 325 | + | |
315 | 326 | | |
316 | 327 | | |
317 | 328 | | |
| |||
358 | 369 | | |
359 | 370 | | |
360 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
361 | 379 | | |
362 | 380 | | |
363 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
364 | 393 | | |
365 | 394 | | |
366 | 395 | | |
| |||
411 | 440 | | |
412 | 441 | | |
413 | 442 | | |
414 | | - | |
| 443 | + | |
415 | 444 | | |
416 | 445 | | |
417 | 446 | | |
418 | 447 | | |
419 | 448 | | |
420 | 449 | | |
| 450 | + | |
421 | 451 | | |
422 | 452 | | |
423 | 453 | | |
424 | 454 | | |
425 | 455 | | |
426 | 456 | | |
427 | 457 | | |
| 458 | + | |
428 | 459 | | |
429 | 460 | | |
430 | 461 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments