From 6e1d5b45de988bb795c4c505f22f2170a78b7746 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 20 Jan 2015 06:06:18 +0000
Subject: [PATCH] fast sort of working

---
 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