rename to serialWgIter in Persistent source generator
@@ -940,7 +940,7 @@ class KernelWriterSource(KernelWriter):
if kernel["PersistentKernel"]:
- kStr += " %s wgPersistent = %s(0);%s" \
+ kStr += " %s serialWgIter = %s(0);%s" \
% (self.uint64Str, self.getGroupIdStr, self.endLine)
kStr += " unsigned int n%s = problemNumGroupTiles%u;%s" \
% ( wg0, n0 , self.endLine)
@@ -956,9 +956,9 @@ class KernelWriterSource(KernelWriter):
#kStr += "if (serial==0) printf(\"WG%%u_%%u probWG:%%u_%%u %s\", hc_get_group_id(0), hc_get_group_id(1), %s, %s);" % (self.endLinePP, wg0, wg1)+ self.endLine
kStr += "%swhile (1) { // persistent loop %s" % (self.endLine, self.endLine)
- kStr += " %s = wgPersistent %% problemNumGroupTiles%u;%s" \
+ kStr += " %s = serialWgIter %% problemNumGroupTiles%u;%s" \
% ( wg0, n0, self.endLine)
- kStr += " %s = wgPersistent / problemNumGroupTiles%u;%s" \
+ kStr += " %s = serialWgIter / problemNumGroupTiles%u;%s" \
% ( wg1, n0, self.endLine)
else:
# optionally transpose work-group grid
@@ -2492,7 +2492,7 @@ class KernelWriterSource(KernelWriter):
nwgg = kernel["WorkGroupMapping"] > 0
n0 = 0 if nwgg else 1
- kStr += " wgPersistent += %s(0);%s" \
+ kStr += " serialWgIter += %s(0);%s" \
% (self.getNumGroupsStr, self.endLine)
kStr += "} // End Persistent Loop" + self.endLine
