Change the second kernel to improve the performance of multiple-buffer implementation when GSU is enabled.
@@ -236,8 +236,8 @@ class KernelWriterConversion(KernelWriterBase):
indexChar = self.indexChars[i]
kStr += " + (size%s - 1) * strideW%s" % (indexChar, indexChar)
kStr += ";" + self.endLine
-
kStr += " " + self.datatype + " accum = 0;%s" % self.endLine
+ kStr += "#pragma unroll%s" % self.endLine
kStr += " for (int i=0; i<gsu; i++) {%s" % self.endLine
kStr += " accum += W[idxW];%s" % self.endLine
kStr += " idxW += strideW;%s" % self.endLine
