From 4ab366a805a7678642539465d68ef906b4599aeb Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 22 Dec 2014 22:35:37 +0000
Subject: [PATCH] some fixes, some other experiments

---
 src/opencl.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/opencl.h b/src/opencl.h
index cdc9e05..ceb6e56 100644
--- a/src/opencl.h
+++ b/src/opencl.h
@@ -1,6 +1,7 @@
-#ifdef GPU
 #ifndef OPENCL_H
 #define OPENCL_H
+extern int gpu_index;
+#ifdef GPU
 #ifdef __APPLE__
 #include <OpenCL/opencl.h>
 #else
@@ -28,5 +29,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