flops: unroll by 16

This commit is contained in:
Hansung Kim
2024-02-12 20:46:50 -08:00
parent c258557999
commit 5a216ef9ca

View File

@@ -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;
}