Keep shift logic on TN path unless GRVW=1
@@ -73,18 +73,18 @@ class KernelWriter:
kStr += self.allocateResources(kernel)
if kernel["ProblemType"]["TLUA"]:
- # TODO - enable more aggressive path
+ # TODO - enable more aggressive path, need guaranteeeNoPartialA from SolutionStructs
#guaranteeeNoPartialA = kernel["AssertFree0ElementMultiple"]%kernel["GlobalLoadVectorWidthA"]==0
guaranteeeNoPartialA = kernel["GlobalLoadVectorWidthA"]==1
else:
- guaranteeeNoPartialA = True
+ guaranteeeNoPartialA = kernel["GlobalLoadVectorWidthA"]==1
if kernel["ProblemType"]["TLUB"]:
# TODO - enable more aggressive path
#guaranteeeNoPartialB = kernel["AssertFree1ElementMultiple"]%kernel["GlobalLoadVectorWidthB"]==0
guaranteeeNoPartialB = kernel["GlobalLoadVectorWidthB"]==1
else:
- guaranteeeNoPartialB = True
+ guaranteeeNoPartialB = kernel["GlobalLoadVectorWidthB"]==1
if self.enable["PreLoop"]:
####################################
