reorder sgprPad to align kernel argument address
@@ -1702,9 +1702,11 @@ class KernelWriterAssembly(KernelWriter):
for idxChar in kernel["PackedC1IdxChars"][:-1]:
self.defineSgpr("MagicNumberSize%s"%idxChar, 1)
self.defineSgpr("MagicShiftSize%s"%idxChar, 1)
+ for idx in kernel["ProblemType"]["IndicesSummation"]:
for tc in ('A','B'):
for zp in kernel["ProblemType"]["ZeroPad%s"%tc]:
(freeDim, sumDim, padStart, padEnd) = zp
+ if sumDim == idx:
freeDimChar = globalParameters["IndexChars"][freeDim]
sumDimChar = globalParameters["IndexChars"][sumDim]
# These will eventually be read as kernel args:
