clarify free0Index and free0Char
@@ -555,10 +555,13 @@ def writeLogic(outputPath, logicData, solutionWriter ):
s += "\n"
if problemType["DataType"].isHalf() :
+ # "first" free index, usually the letter "I"
free0Index = problemType["IndicesFree"][0]
free0Char = globalParameters["IndexChars"][free0Index]
s += "\n"
s += "// intercept schedule selection and call HIP (source) kernel\n"
+ s += "// if either the summation size or the 'first' free index size"
+ s += " is odd\n"
s += " if((((sizeL & 1) == 1) || ((size%s & 1) == 1)))\n"%(free0Char)
s += " {\n"
numSchedules = len(schedules)
