Fix beta insertion if UseBeta==0 (zero kernel always required)
@@ -454,8 +454,6 @@ class SolutionWriter:
#s += " float tmp[128*128];\n"
#s += "clEnqueueReadBuffer(stream, dataC, CL_TRUE, 0, 128*128*sizeof(float), tmp, 0, NULL, NULL);\n"
#s += "for (unsigned int i = 0; i < 128*128; i++) { printf(\"%f\\n\", tmp[i]); }\n"
-
-
else:
s += "%stry {\n" % (t)
# TODO - timing with beta kernels is somewhat pessimistic since it has this separate event only on the GSU path.
@@ -482,7 +480,7 @@ class SolutionWriter:
# sizes
for i in range(0, solution["ProblemType"]["NumIndicesC"]):
s += "%ssize%s%s" % (t, self.indexChars[i], ",\n" if i < solution["ProblemType"]["NumIndicesC"]-1 else ");\n")
-
+ if solution["ProblemType"]["UseBeta"]:
s += " } else if (beta != 1.0) {\n"
t = t[:-2]
s += "%sif( inputEvents != NULL )\n" % (t)
