Skip to content

Commit

Permalink
add local read waitcnt for scalealphavec
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchuanchen committed Sep 27, 2024
1 parent c961e7d commit 7f71abd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tensilelite/Tensile/Components/GlobalWriteBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,17 +994,16 @@ def _emitNonatomicAdd(self, module: Module):
if self.loadE:
vmcnt = 0
commentList.append("E")
if (self.kernel["ProblemType"]["UseScaleAB"] == "Vector") and ((self.kernel["GlobalSplitU"] == 1) or (self.kernel["GlobalSplitUAlgorithm"] == "MultipleBufferSingleKernel")):
vmcnt = 0
commentList.append("ScaleABVec")
if self.kernel["ProblemType"]["UseScaleAlphaVec"] and ((self.kernel["GlobalSplitU"] == 1) or (self.kernel["GlobalSplitUAlgorithm"] == "MultipleBufferSingleKernel")):
vmcnt = 0
commentList.append("ScaleAlphaVec")
# print("ScaleAlphaVec vmcnt")
# Local read wait
if self.parentWriter.states.useBias == DataDirection.READ:
lgkmcnt = 0
commentList.append("Bias LDS")
if (self.kernel["ProblemType"]["UseScaleAB"] == "Vector") and ((self.kernel["GlobalSplitU"] == 1) or (self.kernel["GlobalSplitUAlgorithm"] == "MultipleBufferSingleKernel")):
lgkmcnt = 0
commentList.append("ScaleABVec")
if self.kernel["ProblemType"]["UseScaleAlphaVec"] and ((self.kernel["GlobalSplitU"] == 1) or (self.kernel["GlobalSplitUAlgorithm"] == "MultipleBufferSingleKernel")):
lgkmcnt = 0
commentList.append("ScaleAlphaVec")
if (vmcnt != -1) or (lgkmcnt != -1):
# Get comment
comment = "wait for " + commentList[0]
Expand Down

0 comments on commit 7f71abd

Please sign in to comment.