From cb1f33c6ae840e8dc0f43518daf76e6ed01034f0 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Mon, 08 Dec 2014 19:48:57 +0000 Subject: [PATCH] Fixed race condition in server --- src/opencl.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/opencl.h b/src/opencl.h index cdc9e05..f93f9f3 100644 --- a/src/opencl.h +++ b/src/opencl.h @@ -19,7 +19,7 @@ extern cl_info cl; -void cl_setup(); +void cl_setup(int index); void check_error(cl_info info); cl_kernel get_kernel(char *filename, char *kernelname, char *options); void cl_read_array(cl_mem mem, float *x, int n); @@ -28,5 +28,6 @@ cl_mem cl_make_int_array(int *x, int n); void cl_copy_array(cl_mem src, cl_mem dst, int n); cl_mem cl_sub_array(cl_mem src, int offset, int size); +float cl_checksum(cl_mem mem, int n); #endif #endif -- Gitblit v1.10.0