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

* [CK_TILE] FMHA BWD Fix Compilation with Bias

* Fix appendkv kApplyRoPE
This commit is contained in:
Yi DING
2025-08-22 10:01:10 +08:00
committed by GitHub
parent 49c6b05c72
commit 4cfa2c7158
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,