From ebbd413051b8ed415afa26adf291dca38c92ca8b Mon Sep 17 00:00:00 2001 From: "xiangru.xiao" Date: Fri, 21 Apr 2023 10:13:54 +0800 Subject: [PATCH] [fix] modify cl kernel to avoid over-optimisation Signed-off-by: xiangru.xiao --- workload/opencl/src/include/cltkit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workload/opencl/src/include/cltkit.h b/workload/opencl/src/include/cltkit.h index 2998750..44e7994 100644 --- a/workload/opencl/src/include/cltkit.h +++ b/workload/opencl/src/include/cltkit.h @@ -246,7 +246,7 @@ private: if (i > 0) oss << "(" << tName << (1 << i) << ")("; oss << "temp"; for (int ss = 1 ; ss < (1 << i) ; ++ss) { - oss << "," << "temp"; + oss << "," << "temp" << "+" << ss; } if (i > 0) oss << ")"; oss << ";\n"; -- Gitee