Skip to content

Commit 770669a

Browse files
committed
Revert "Fix verify kernel when num_heads_kv != num_heads_q"
This reverts commit 2c74e22.
1 parent 2c74e22 commit 770669a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sycl/06_pvc_flash_attention/pvc_flash_attn_runner.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ template <class GemmKernel, bool isVarLen> struct ExampleRunner {
371371
if(kv_group_update % q_group_size==0) {
372372
offset_k += seq_len_kv * head_size_qk;
373373
offset_v += seq_len_kv * head_size_vo;
374-
offset_k_cache += seq_len_kv_cache * head_size_qk;
375-
offset_v_cache += seq_len_kv_cache * head_size_vo;
376374
}
377375
kv_group_update++;
376+
offset_k_cache += seq_len_kv_cache * head_size_qk;
377+
offset_v_cache += seq_len_kv_cache * head_size_vo;
378378
offset_o += seq_len_qo * head_size_vo;
379379
}
380380
}

0 commit comments

Comments
 (0)