resolve non-HPA hgemm regression on gfx900
@@ -8725,7 +8725,8 @@ class KernelWriterAssembly(KernelWriter):
if self.cfg.numVgprsPerDataPerVI > 0:
if self.cfg.halfDataRegPerVI:
- if kernel["ProblemType"]["DataType"].isBFloat16() or kernel["ProblemType"]["DataType"].isHalf():
+ if kernel["ProblemType"]["HighPrecisionAccumulate"] and \
+ (kernel["ProblemType"]["DataType"].isBFloat16() or kernel["ProblemType"]["DataType"].isHalf()):
data = kw.vgprPool.checkOut(int(2*self.cfg.numVgprsPerDataPerVI*self.cfg.gwvw), \
"writeBatch-data for ei=%u and ei=%u"%(elementIdx,elementIdx+1), preventOverflow=True)
else:
