Fix the compiling error in HSTU_SCHED_BATCH_AS_FIRST_GRID_DIM=0 path

This commit is contained in:
Qianfeng Zhang
2026-06-30 09:10:12 +00:00
parent 80d7b8dce7
commit 4667be2bb0
3 changed files with 3 additions and 9 deletions

View File

@@ -608,9 +608,7 @@ struct HstuAttentionFwdKernel
#if HSTU_SCHED_BATCH_AS_FIRST_GRID_DIM
return dim3(batch_size_, nhead_, num_tile_in_seqlen);
#else
return dim3(num_tile_in_seqlen),
nhead_,
batch_size_);
return dim3(num_tile_in_seqlen, nhead_, batch_size_);
#endif
}
}

View File

@@ -232,9 +232,7 @@ struct HstuAttentionFwdSplitKVCombineKernel
#if HSTU_SCHED_BATCH_AS_FIRST_GRID_DIM
return dim3(batch_size_, nhead_, num_tile_in_seqlen);
#else
return dim3(num_tile_in_seqlen),
nhead_,
batch_size_);
return dim3(num_tile_in_seqlen, nhead_, batch_size_);
#endif
}

View File

@@ -569,9 +569,7 @@ struct HstuAttentionFwdSplitKVKernel
#if HSTU_SCHED_BATCH_AS_FIRST_GRID_DIM
return dim3(batch_size_, nhead_, num_tile_in_seqlen * num_splits);
#else
return dim3(num_tile_in_seqlen*num_splits),
nhead_,
batch_size_);
return dim3(num_tile_in_seqlen * num_splits, nhead_, batch_size_);
#endif
}
}