From 5a216ef9ca8978dc77725399f739abf3bf20b884 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Mon, 12 Feb 2024 20:46:50 -0800 Subject: [PATCH] flops: unroll by 16 --- tests/opencl/flops/kernel.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/opencl/flops/kernel.cl b/tests/opencl/flops/kernel.cl index ab26c745..181e1171 100644 --- a/tests/opencl/flops/kernel.cl +++ b/tests/opencl/flops/kernel.cl @@ -5,7 +5,7 @@ __kernel void flops (__global volatile const float *src, int gid = get_global_id(0); float f = 0.0f; float incr = src[0]; - __attribute__((opencl_unroll_hint)) + __attribute__((opencl_unroll_hint(16))) for (int i = 0; i < 5000; i++) { f += incr; }