OpenCL Kernels: Use the kernel local buffer size as additional reference in order to limit the thread-count

This commit is contained in:
Jens Steube
2018-02-11 10:56:08 +01:00
parent a7a15df911
commit d656e9c3a4
9 changed files with 130 additions and 17 deletions
+2 -1
View File
@@ -61724,7 +61724,8 @@ __kernel void gpu_atinit (__global pw_t *buf, const u64 gid_max)
pw.i[62] = 0;
pw.i[63] = 0; // yep that's faster
pw.pw_len = 1 + (l32 & 15);
//pw.pw_len = 1 + (l32 & 15);
pw.pw_len = 7; // some algorithms are very sensible on this (example: 12500)
buf[gid] = pw;
}