diff options
author | David Phillips <david@sighup.nz> | 2018-04-24 17:31:01 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2018-04-24 17:31:01 +1200 |
commit | 579a6ffe7f0ec2e460d25ef6c6b4e732228e707d (patch) | |
tree | 683bbb2c6a16ce880924f0b928438c1195fa9873 /trampoline.c | |
parent | 133dd90a0de29b7c24217ca87af57ede4da1247b (diff) | |
download | sand-leek-579a6ffe7f0ec2e460d25ef6c6b4e732228e707d.tar.xz |
Remove magic constant for thread count
Diffstat (limited to 'trampoline.c')
-rw-r--r-- | trampoline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trampoline.c b/trampoline.c index 8dd9040..28ae3fd 100644 --- a/trampoline.c +++ b/trampoline.c @@ -2,9 +2,9 @@ #include <string.h> #include <opencl.h> +#include "trampoline.h" #include "cl_error.h" #include "slurp.h" -#include "sha1.h" static cl_platform_id platform; static cl_context context; @@ -395,7 +395,7 @@ int tramp_run_kernel() cl_event event; cl_int ret = 0; size_t workgroup_sizes[2]; - workgroup_sizes[0] = 32768; + workgroup_sizes[0] = SL_WORK_THREADS; workgroup_sizes[1] = 1; ret = clEnqueueNDRangeKernel(command_queue, kernel, 2, NULL, workgroup_sizes, NULL, 0, NULL, &event); @@ -457,7 +457,7 @@ int tramp_copy_sha(struct sha_data *sha) * * Returns 0 on success, non-zero otherwise. */ -int tramp_copy_search(unsigned int search_raw[10]) +int tramp_copy_search(unsigned char search_raw[10]) { cl_event event; cl_int ret = 0; |