Fix debug code. Have to wait for all outstanding memory requests before barrier.
@@ -4116,10 +4116,10 @@ class KernelWriterAssembly(KernelWriter):
if 0:
kStr += inst("s_barrier", "temp debug wait to check sync issue" )
- #if 1 and tP["isB"]:
- if 0 and self.localWriteDoCnt >= 0:
- kStr += inst("s_barrier", "dump LDS" )
+ if 1 and tP["isA"]:
+ #if 0 and self.localWriteDoCnt >= 0:
kStr += "s_waitcnt lgkmcnt(0) & vmcnt(0)\n"
+ kStr += inst("s_barrier", "dump LDS" )
kStr += self.bomb(105)
return kStr
