Commit cc35fd3
authored
perf(hipblaslt): Split subtile cluster barrier signal/wait (gfx1250) (ROCm#8805)
ISSUE ID : AIHPBLAS-3984
### Motivation
The subtile cluster barrier exposed its cross-CU latency as a stall, and
loop-control / cluster branches were issued without regard to the
surrounding WMMAs, costing branch latency in the mainloop on gfx1250.
### Technical Details
Added features:
- Split the cluster barrier into separate signal and wait halves
- Wave-0 election replacing the prior isfirst-barrier scheme; only wave
0 branches into the cluster signal.
- Post-schedule splicing (insertClusterBarrier) — the signal is spliced
right after the mainloop's existing workgroup barrier (reusing that sync
rather than emitting a second one);
- Branch-after-WMMA placement to hide branching latency:
- 16-byte alignment on branch targets (LoopBeginL, skipCBPreSignal).
- gfx1250 gating via HasWmmaArbStallBit, with an assert that
ClusterBarrier is gfx1250-only.
### Test Result
- test_SubtileBasedLogicalScheduler.py — 131 passed.
- The three subtile bf16 gfx1250 gemm common tests pass:
- Tensile/Tests/common/gemm/gfx12/subtile_bf16_gfx1250.yaml
- Tensile/Tests/common/gemm/gfx12/subtile_bf16_gfx1250_dp.yaml
- Tensile/Tests/common/gemm/gfx12/subtile_bf16_gfx1250_cluster.yaml1 parent 946e8e0 commit cc35fd3
3 files changed
Lines changed: 372 additions & 36 deletions
File tree
- projects/hipblaslt/tensilelite/Tensile
- Components/Subtile
- Tests/unit
Lines changed: 117 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
28 | 49 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 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 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
Lines changed: 81 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 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 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
65 | 121 | | |
66 | 122 | | |
67 | 123 | | |
| |||
3315 | 3371 | | |
3316 | 3372 | | |
3317 | 3373 | | |
3318 | | - | |
3319 | | - | |
3320 | | - | |
3321 | | - | |
3322 | 3374 | | |
3323 | 3375 | | |
3324 | 3376 | | |
| |||
3372 | 3424 | | |
3373 | 3425 | | |
3374 | 3426 | | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
3375 | 3432 | | |
3376 | 3433 | | |
3377 | 3434 | | |
| |||
3433 | 3490 | | |
3434 | 3491 | | |
3435 | 3492 | | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
3436 | 3497 | | |
3437 | 3498 | | |
3438 | 3499 | | |
| |||
3502 | 3563 | | |
3503 | 3564 | | |
3504 | 3565 | | |
3505 | | - | |
| 3566 | + | |
3506 | 3567 | | |
3507 | 3568 | | |
3508 | 3569 | | |
| |||
3524 | 3585 | | |
3525 | 3586 | | |
3526 | 3587 | | |
3527 | | - | |
3528 | | - | |
3529 | | - | |
3530 | | - | |
3531 | | - | |
3532 | | - | |
3533 | | - | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3534 | 3598 | | |
3535 | | - | |
| 3599 | + | |
3536 | 3600 | | |
3537 | | - | |
| 3601 | + | |
3538 | 3602 | | |
3539 | | - | |
| 3603 | + | |
3540 | 3604 | | |
3541 | | - | |
| 3605 | + | |
| 3606 | + | |
3542 | 3607 | | |
3543 | 3608 | | |
3544 | 3609 | | |
| |||
0 commit comments