fix RuntimeLanguage OCL support
test in KernelLanguage Source case
@@ -138,8 +138,10 @@ class SolutionWriter:
s += "\n%s/* kernels */\n" % (t)
s += "%sconst unsigned int numKernels = %u; // 1 or 4\n" % (t, len(kernels))
+ if globalParameters["RuntimeLanguage"] == "HIP":
s += "%sint deviceId;\n" % (t)
s += "%shipGetDevice(&deviceId);\n" % (t)
+
if solution["KernelLanguage"] == "Source" and globalParameters["RuntimeLanguage"] == "OCL":
s += "%sconst char *kernelSources[numKernels] = {\n" % (t)
t += " "
@@ -543,6 +545,7 @@ class SolutionWriter:
s += "%sinputEvents,\n" % (t)
s += "%soutputEvent );\n" % (t)
s += "%stensileStatusCheck(status);\n" % (t)
+ s += "%s}\n" % (t)
########################################
# HIP Runtime
