[CK_TILE] FMHA BWD Fix Compilation with Bias (#2682)

* [CK_TILE] FMHA BWD Fix Compilation with Bias

* Fix appendkv kApplyRoPE

[ROCm/composable_kernel commit: 4cfa2c7158]
This commit is contained in:
Yi DING
2025-08-22 10:01:10 +08:00
committed by GitHub
parent c63fbe24ca
commit f885dd8b33
5 changed files with 28 additions and 65 deletions

View File

@@ -649,8 +649,12 @@ struct FmhaFwdAppendKVKernel
{0, i_n0});
// If kApplyRoPe is false, we set the rotary_dim to 0
auto rotary_dim = kApplyRoPE ? kargs.rotary_dim : 0;
auto rotary_dim = [&]() {
if constexpr(kApplyRoPE)
return kargs.rotary_dim;
else
return 0;
}();
FmhaPipeline{}(q_dram_window,
k_dram_window,
i_page_block_k,