hot fix eid

This commit is contained in:
coderfeli
2025-02-20 10:18:01 +00:00
parent c881c378f2
commit 6cb9c0e67c

View File

@@ -1175,7 +1175,8 @@ struct GridwiseMoeGemm
// constexpr int expert_tile_cnt[8] = {2, 1, 1, 2, 2, 2, 1, 2};
// const index_t b_block_id = blockIdx.x % problem.NBlock;
const index_t expert_block_id = blockIdx.x / problem.NBlock;
const index_t expert_id = __builtin_amdgcn_readfirstlane(p_sorted_expert_ids[blockIdx.x / problem.NBlock]);
const index_t expert_id = NSwizzle ? __builtin_amdgcn_readfirstlane(p_sorted_expert_ids[blockIdx.x / problem.NBlock]) :
__builtin_amdgcn_readfirstlane(p_sorted_expert_ids[blockIdx.y]);
const auto block_mn = [&]() -> std::pair<int, int> {
if constexpr (NSwizzle)
{