Fix a bug for qr_ks_vs_async_trload pipeline (#3271)

This commit is contained in:
Qianfeng
2025-11-24 21:31:48 +08:00
committed by GitHub
parent 5948dbffe4
commit 81042ea574
2 changed files with 2 additions and 2 deletions

View File

@@ -1641,7 +1641,7 @@ struct FmhaFwdKernel
// 2. use more LDS, as we want better memory latency hiding
// If SplitKV off, we don't expect Q data reused by different ThreadGroups, bypass the
// cache
constexpr bool PrefillCase = FmhaPipeline::kM0 >= 128;
constexpr bool PrefillCase = FmhaPipeline::kM0 > 64;
// divide problem
const auto [i_tile_m, i_tile_n, i_nhead, i_batch] = GetTileIndex(kargs);

View File

@@ -37,7 +37,7 @@ struct BlockFmhaPipelineQRKSVSAsyncTrload
using VLayout = remove_cvref_t<typename BlockFmhaShape::VLayout>;
static constexpr bool kQLoadOnce = true; // if q_tile load whole block length (hdim) at once
static_assert(kQLoadOnce == Policy::QLoadOnce);
static constexpr bool kKLoadOnce = BlockFmhaShape::kM0 >= 64;
static constexpr bool kKLoadOnce = BlockFmhaShape::kM0 > 64;
static constexpr index_t kBlockSize = Problem::kBlockSize;