Commit 42a7240a authored by danyao12's avatar danyao12
Browse files

do{}while() -> while(){}

parent 1d7099b6
...@@ -533,7 +533,7 @@ struct BlockFmhaBwdDQDKDVPipelineKRKTRVR ...@@ -533,7 +533,7 @@ struct BlockFmhaBwdDQDKDVPipelineKRKTRVR
__builtin_amdgcn_sched_barrier(0); __builtin_amdgcn_sched_barrier(0);
// Hot loop // Hot loop
do while(i_total_loops < (num_total_loop - 1))
{ {
// STAGE 1, Q@K Gemm0 // STAGE 1, Q@K Gemm0
auto st_acc = SPTBlockTileType{}; auto st_acc = SPTBlockTileType{};
...@@ -799,7 +799,7 @@ struct BlockFmhaBwdDQDKDVPipelineKRKTRVR ...@@ -799,7 +799,7 @@ struct BlockFmhaBwdDQDKDVPipelineKRKTRVR
i_total_loops += 1; i_total_loops += 1;
seqlen_q_step += kM0; seqlen_q_step += kM0;
} while(i_total_loops < (num_total_loop - 1)); }
__builtin_amdgcn_sched_barrier(0); __builtin_amdgcn_sched_barrier(0);
// Tail // Tail
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment