From 579a6ffe7f0ec2e460d25ef6c6b4e732228e707d Mon Sep 17 00:00:00 2001 From: David Phillips Date: Tue, 24 Apr 2018 17:31:01 +1200 Subject: Remove magic constant for thread count --- trampoline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trampoline.c') diff --git a/trampoline.c b/trampoline.c index 8dd9040..28ae3fd 100644 --- a/trampoline.c +++ b/trampoline.c @@ -2,9 +2,9 @@ #include #include +#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; -- cgit v1.1