Skip to content

Commit 53cc5ad

Browse files
authored
Merge pull request #1366 from InfiniTensor/feat/hygon-fa2-graph
fix: support Hygon flash attention graph capture
2 parents 81e664e + defacd5 commit 53cc5ad

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/infinicore/ops/mha_kvcache/hygon/mha_kvcache_flashattn_hygon.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ void run(void *planned_meta) {
143143
false,
144144
0);
145145

146-
c10::hip::device_synchronize();
147146
if (!result.empty() && result[0].defined()) {
148147
out_tensor.copy_(result[0]);
149148
}

src/infinicore/ops/multi_head_attention_varlen/hygon/mha_varlen_flashattn_hygon.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ void run(void *planned_meta) {
240240
0.0,
241241
false,
242242
std::nullopt);
243-
c10::hip::device_synchronize();
244243
if (!result.empty() && result[0].defined()) {
245244
out_work.copy_(result[0]);
246245
}

0 commit comments

Comments
 (0)