feat(hipblaslt): add auxiliary output to Swish epilogues #14475
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 298 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #14475"
general
weight: 0.35
yzhang93
JIRA ID : AIHPBLAS-1827
Motivation
Training needs both the Swish result and its input for the backward pass.
The existing fused Swish epilogues expose only the activated result.
Technical Details
Add
HIPBLASLT_EPILOGUE_SWISH_AUX_EXTandHIPBLASLT_EPILOGUE_SWISH_AUX_BIAS_EXT. D receives Swish output; AUX receivesthe activation input, including bias when enabled. The modes reuse existing
AUX descriptor attributes and SiLU kernels, following the GELU/Clamp AUX
enum and dispatch patterns.
Add API, FP16/BF16/FP32 numerical, padded-layout and C++ extension coverage.
An additional unfiltered FP16 row follows the existing GELU AUX test pattern
for architectures outside the complete mixed-type matrix. Extend the existing
Swish sample and TensileLite E-output cases.
Test Plan
From the configured clients build directory:
From the TensileLite source directory, with
TENSILELITE_PREBUILT_CLIENTpointing to the built client:
Test Result
CI is the primary validation for this change. The new pre-checkin
matmul_bias_swish_aux,matmul_bias_swish_aux_fp16,matmul_bias_swish_aux_layout, andaux_matmul_swishtests run in these jobs:Linux::release / Test gfx94X-dcgpu / Test hipblaslt(six gfx942 shards).mci/rocm-libraries/precheckin(hipblaslt)(gfx950 test leg).gfx1250-strict hipBLASLt + TensileLite(gfx1250 device tests).The test matrix includes 402 mixed-type numerical/layout combinations, 128
additional unfiltered FP16 combinations, and one descriptor API test. They
check the activated D output and pre-activation AUX output, bias on/off, FP16/BF16/FP32, padded and batched AUX layouts, C/C++ extension paths,
and invalid AUX descriptor values.
Submission Checklist
Risk level
Medium (3/5): new public epilogue selections enable Swish with a second output
through shared dispatch and existing kernels.