[CK_TILE] Update the fmhafwd dispatch logic (#2698)

* update the fmhafwd dispatch  logic

* Fix fmha test scripts

* Fix bash

---------

Co-authored-by: Ding, Yi <yi.ding@amd.com>
This commit is contained in:
Haocong WANG
2025-08-20 16:24:43 +08:00
committed by GitHub
parent bf3e719c16
commit 81b265cf91
4 changed files with 23 additions and 18 deletions

View File

@@ -385,7 +385,7 @@ class FmhaFwdApiPool:
for i, dtype in enumerate(self.pool.keys()):
per_hdim_case=str()
for j, (hdim, hdim_v) in enumerate(self.pool[dtype].keys()):
traits=self.pool[dtype][(hdim, hdim_v)]
traits=[t for t in self.pool[dtype][(hdim, hdim_v)] if tr_load == t.tr_load]
inners=str()
for k, trait in enumerate(traits):
if_k = 'if' if k == 0 else 'else if'